This is a very simple example of an init.d-style daemon that uses the LSB helpers. It is a modified version of the script found at http://www.thegeekstuff.com/2012/03/lsbinit-script.
Assume we have a daemon helloworld.py
which can be invoked as (running at the foreground):
/path/to/helloworld.py /another-path/to/helloworld.ini
We want to wrap this daemon, say helloworld
, into a init.d-style script (e.g. to include it in the normal boot sequence). When done, the daemon will be managed in the usual manner: