Tuesday, June 26, 2018

How to add Linux service to autostartup

If you wish that your service would start during Linux boot, you have to execute following commands:


sudo update-rc.d <service-name> defaults
 
This should add the service to the automatic startup system. But if you get:
System start/stop links for /etc/init.d/<service-name> already exist.

Execute the command:


sudo update-rc.d <service-name> enable

No comments:

Post a Comment