/etc/rc.local does not run at boot
Larry Alkoff
labradley at mindspring.com
Sun Feb 14 13:33:05 UTC 2010
How can I force /etc/init.d to run /etc/rc.local when my 8.04 LTS
machine boots?
The only way /etc/rc.local runs is if I _manually_ run it as root with
/etc/rc.local.
I think it may be something in /etc/init.d/rc.local which is unchanged
from the installation of 8.04 LTS.
ls -l /etc/init.d/rc.local
-rwxr-xr-x 1 root root 522 2009-01-23 09:01 /etc/init.d/rc.local
#! /bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
[ -f /etc/default/rcS ] && . /etc/default/rcS
. /lib/lsb/init-functions
do_start() {
if [ -x /etc/rc.local ]; then
log_begin_msg "Running local boot scripts (/etc/rc.local)"
/etc/rc.local
log_end_msg $?
fi
}
case "$1" in
start)
do_start
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac
More information about the kubuntu-users
mailing list