/etc/rc.local does not run at boot

Tom H tomh0665 at gmail.com
Sun Feb 14 22:03:25 UTC 2010


>> Do you have symbolic links to /etc/init.d/rc.local in /etc/rcX.d?

> These are the symbolic links that run rc.local:

> root at arriba /etc# grep -r  rc.local rc*.d
> rc2.d/S99rc.local:      if [ -x /etc/rc.local ]; then
> rc2.d/S99rc.local:              log_begin_msg "Running local boot
> scripts (/etc/rc.local)"
> rc2.d/S99rc.local:              /etc/rc.local
> rc3.d/S99rc.local:      if [ -x /etc/rc.local ]; then
> rc3.d/S99rc.local:              log_begin_msg "Running local boot
> scripts (/etc/rc.local)"
> rc3.d/S99rc.local:              /etc/rc.local
> rc4.d/S99rc.local:      if [ -x /etc/rc.local ]; then
> rc4.d/S99rc.local:              log_begin_msg "Running local boot
> scripts (/etc/rc.local)"
> rc4.d/S99rc.local:              /etc/rc.local
> rc5.d/S99rc.local:      if [ -x /etc/rc.local ]; then
> rc5.d/S99rc.local:              log_begin_msg "Running local boot
> scripts (/etc/rc.local)"
> rc5.d/S99rc.local:              /etc/rc.local

>> What is the output of
>> find /etc -name *rc\.local -print0 ¦ xargs -0 ls -l

> root at arriba /# find /etc -name *rc\.local -print0 ¦ xargs -0 ls -l
> find: paths must precede expression
> Usage: find [-H] [-L] [-P] [path...] [expression]

> I don't know much about using find but your syntax didn't work.

Although I meant to have a "\" in from of the "*", my syntax works:

root at lucidbox:~# find /etc -name \*rc\.local -print0 | xargs -0 ls -l
-rwxr-xr-x 1 root root 801 2009-09-07 14:58 /etc/init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc2.d/S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc3.d/S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc4.d/S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc5.d/S99rc.local ->
../init.d/rc.local
-rwxr-xr-x 1 root root 306 2010-01-13 02:16 /etc/rc.local

root at lucidbox:~# find /etc -name *rc\.local -print0 | xargs -0 ls -l
-rwxr-xr-x 1 root root 801 2009-09-07 14:58 /etc/init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc2.d/S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc3.d/S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc4.d/S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc5.d/S99rc.local ->
../init.d/rc.local
-rwxr-xr-x 1 root root 306 2010-01-13 02:16 /etc/rc.local

root at lucidbox:~# find /etc -name *rc.local -print0 | xargs -0 ls -l
-rwxr-xr-x 1 root root 801 2009-09-07 14:58 /etc/init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc2.d/S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc3.d/S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc4.d/S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root  18 2010-02-11 11:19 /etc/rc5.d/S99rc.local ->
../init.d/rc.local
-rwxr-xr-x 1 root root 306 2010-01-13 02:16 /etc/rc.local

I think that it is the "¦" that you must have copied and pasted that
has created the problem. I typed in to gmail and it is different from
the ones above that I copied and pasted. Sorry.

Anyway, I wanted to know whether the links were there and your grep
shows that they are. Cannot think of anything else that would cause
your problem at the moment...




More information about the kubuntu-users mailing list