A simple python daemon which you can use to daemonize processes or to create cron like tasks in python.
- Download the tarball and run
python setup.py install - Copy the
daemonexample.pyto/etc/init.dand modify it to suite your needs - When you are done, make it an executable
chmod +x /etc/init.d/daemonexample.py.
You can use it like any other UNIX daemon. On Linux
invoke-rc.d daemonexample start|stop|restart
And on MacOS
python daemonexample.py start|stop|restart
Doesn't work well with virtualenv
Python 2.5+