web.py is a web framework for Python that is as simple as it is powerful. web.py is in the public domain; you can use it for whatever purpose with absolutely no restrictions.
I was building a simple application with this library and need this run as a background service.
python /opt/server.py 8080 2>/dev/null &
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 🙂