Make a daemon start at boot in Ubuntu

From The IT Community
Jump to: navigation, search




If you have a daemon in Linux, you can start it manually if you use the service command. But what if you want it to start every time the server boots?


Here is how to make a daemon start at boot in Ubuntu:

The command update-rc.d allows you to control what services are run by init when entering various runlevels.


For example if you want your Apache server to come up at boot enter:

sudo update-rc.d apache2 defaults

If you later want to disable running apache2 on bootup enter:

sudo update-rc.d apache2 remove


Was this article helpful? Then please donate to keep The IT Community alive...

If you found this article helpful please share it, comment and help others by writing your own article.






Translate this page: