Powered by Tachyonic Project Luxon Framework v0.0.0

Luxon Framework for rapid application development. (luxon)

Version

Daemon Utility

class luxon.utils.daemon.Daemon(pidfile, run=None, args=[], kwargs={}, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null')[source]

Generic Daemon class.

Usage options:
  1. Use as context with Daemon:
  2. Subclass the Daemon class and override the run() method
  3. Define method to run via keyword arguements.
daemonize()[source]

Start the daemon

restart()[source]

Restart the daemon

run()[source]

Method to run daemonized

You should override this method when you subclass Daemon. It will be called after the process has been daemonized by start() or restart().

stop()[source]

Stop the daemon