How to autostart service in linux ubuntu

I was creating a program using python for my linux box and I need this program runs every time when the server booting. I was googling how to get this done, some are suggesting to edit the rc.d file then add our line in there. That’s work though, but I found something better, we can manage what service will be started on booting using rcconf.

You will need to install rcconf from repository to get this work,

apt-get install rcconf

Once installed you can use it by entering this command


The rcconf will display what service/program that located in /etc/init.d/, mark the service you want to start manually then save it.

That’s it, so simple and easy 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *