Service Boot Persistence in Linux

In many cases you need to work with service boot persistence in Linux, which means all those services like ssh, HTTP is started automatically when you boot the system. The best example of the need for this service is when you are installing a remote Linux server which will be accessed using ssh. When you boot the system these services are automatically started in the system.

How to Automatically Start Service on Boot?

To automatically start any service like ssh as an example you just need to type the simple command that is



update-rc.d ssh enable

Similarly for HTTP service, we can use the below command.

update-rc.d apache2 enable

After this, both these services should persist on the next reboot.

There are also tools available to do the same as rcconf and sysv-rc-conf which will help you do the same task in a much efficient way. To use rcconf we would simply type “rcconf” in terminal and rcconf is launched.

rcconf

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.