Ubuntu – Ubuntu 16.10 rc.local file does not exist

16.10scripts

Until 16.10 I was able to use rc.local to load a script for speeding up track point on my Think Pad. I did a clean install of 16.10 and I could not locate the /etc/rc.local file in 16.10???? so I created the file but now the system just shows the Ubuntu startup screen and never finishes the boot until I delete the file. Wanted to see if anyone else has seen this issue and is there any way I can load the script without the rc.local file.

Best Answer

Because Ubuntu is now (since 15.04) using systemd, and rc.local is now considered a service, it is turned off by default. You can turn rc.local "on" by entering the following command and rebooting:

sudo systemctl enable rc-local.service
Related Question