A generic daemon class.
More...
Detailed Description
A generic daemon class.
Usage: subclass the Daemon class and override the run() method
Definition at line 35 of file daemon.py.
Constructor & Destructor Documentation
def src.cm.utils.threads.daemon.Daemon.__init__ |
( |
|
self, |
|
|
|
pidfile, |
|
|
|
stdin = '/dev/null' , |
|
|
|
stdout = '/dev/null' , |
|
|
|
stderr = '/dev/null' |
|
) |
| |
Member Function Documentation
def src.cm.utils.threads.daemon.Daemon.daemonize |
( |
|
self | ) |
|
def src.cm.utils.threads.daemon.Daemon.delpid |
( |
|
self | ) |
|
def src.cm.utils.threads.daemon.Daemon.restart |
( |
|
self | ) |
|
Restart the daemon.
Definition at line 149 of file daemon.py.
def src.cm.utils.threads.daemon.Daemon.run |
( |
|
self | ) |
|
You should override this method when you subclass Daemon.
It will be called after the process has been daemonized by start() or restart().
Definition at line 158 of file daemon.py.
def src.cm.utils.threads.daemon.Daemon.start |
( |
|
self | ) |
|
Start the daemon.
Definition at line 95 of file daemon.py.
def src.cm.utils.threads.daemon.Daemon.stop |
( |
|
self | ) |
|
Member Data Documentation
src.cm.utils.threads.daemon.Daemon.pidfile |
src.cm.utils.threads.daemon.Daemon.stderr |
src.cm.utils.threads.daemon.Daemon.stdin |
src.cm.utils.threads.daemon.Daemon.stdout |
The documentation for this class was generated from the following file: