Snippets Linux / Service on Reboot

Service start on reboot

By Marcelo Fernandes Sep 8, 2017

Making Services start on Reboot


sudo update-rc.d SERVICE_NAME defaults


No output should be given, but if you see the following line:


System start/stop links for /etc/init.d/SERVICE_NAME already exist.


Do the following:


sudo update-rc.d SERVICE_NAME enable


If you want to remove this behaviour:


update-rc.d -f SERVICE_NAME remove

For further details access the command manual page:
man update-rc.d


Notes


References:


link 1