rc.local is not always executed upon boot
Posted
by
starcorn
on Ask Ubuntu
See other posts from Ask Ubuntu
or by starcorn
Published on 2011-01-25T15:13:45Z
Indexed on
2011/02/24
23:33 UTC
Read the original article
Hit count: 345
Hey,
I have some weird problem with the rc.local file which is located in /etc/rc.local
the thing is that it is not always running when I boot up the laptop. Maybe every second time, I haven't counted. Anyway when that happens I have to manually go to terminal and type sudo /etc/init.d/rc.local start
, which kinda kills the purpose of having this script. Anyone know what the problem could be?
EDIT
Since this wasn't obvious. This is an issue where I make a fresh boot up. Which mean I have shut down the computer. And next time when I boot up the computer, the rc.local file is randomly deciding whether it will automatically start or not.
Here's a copy of what my rc.local file contains
echo -n 255 > /sys/devices/platform/i8042/serio1/serio2/sensitivity
echo level 2 > /proc/acpi/ibm/fan
touch /home/starcorn/Desktop/foo
rfkill block bluetooth
exit 0
© Ask Ubuntu or respective owner