I assume that the rest of the startup scripts work fine. 
Could you please add a new script /etc/init.d/test.

#! /bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin
[ -f /etc/default/rcS ] && . /etc/default/rcS
. /lib/lsb/init-functions

do_start() {
                log_begin_msg "Running test script"
                echo "OK" >> /var/log/test
                log_end_msg $?
}

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

###########################

sudo chmod +x /etc/init.d/test
sudo update-rc.d test defaults

Then reboot and see if it works.

-- 
rc.local script does not run on bootup
https://bugs.launchpad.net/bugs/226503
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to