/etc/rc.local not running contents on boot
Admin
admin at enabled.com
Mon Jul 20 18:15:13 UTC 2009
Siggy Brentrup wrote:
> On Sun, Jul 19, 2009 at 11:01:32PM -0700, Admin wrote:
>> Rashkae wrote:
>>> Admin wrote:
>>>> Hi there,
>>>>
>>>> I am finding that the contents of /etc/rc.local are not getting executed
>>>> at reboot time. I am trying to figure out why. When I run
>>>> /etc/rc.local as root things run fine. What is going on here?
>>>>
>>> Is rc.local still in your start up sequence?
>>>
>>> if you run ls -l /etc/rc2.d
>>
>> yup its there
>>
>> # ls -l /etc/rc2.d/S99*
>> lrwxrwxrwx 1 root root 22 2009-06-05 00:57 /etc/rc2.d/S99acpi-support ->
>> ../init.d/acpi-support
>> lrwxrwxrwx 1 root root 21 2009-06-05 00:57 /etc/rc2.d/S99laptop-mode ->
>> ../init.d/laptop-mode
>> lrwxrwxrwx 1 root root 18 2009-06-05 00:57 /etc/rc2.d/S99ondemand ->
>> ../init.d/ondemand
>> lrwxrwxrwx 1 root root 18 2009-06-05 00:57 /etc/rc2.d/S99rc.local ->
>> ../init.d/rc.local
>> lrwxrwxrwx 1 root root 19 2009-06-05 00:57 /etc/rc2.d/S99rmnologin ->
>> ../init.d/rmnologin
>> lrwxrwxrwx 1 root root 24 2009-06-05 00:57 /etc/rc2.d/S99stop-readahead
>> -> ../init.d/stop-readahead
>
> Please post also
> % ls -l /etc/init.d/rc.local /etc/rc.local
> -rwxr-xr-x 1 root root 788 2008-10-14 15:02 /etc/init.d/rc.local
> -rwxr-xr-x 1 root root 306 2008-07-02 12:16 /etc/rc.local
>
> if a script isn't executable, it won't be run - an easy way
> to temporarily disable services.
>
> HTH
> Siggy
>
>
Siggy,
already checked that - that's not the problem. htey are Both executable.
$ ls -l /etc/init.d/rc.local /etc/rc.local
-rwxr-xr-x 1 root root 522 Jan 23 15:20 /etc/init.d/rc.local
-rwxr-xr-x 1 root root 306 Feb 20 09:18 /etc/rc.local
More information about the ubuntu-users
mailing list