RLRP routing
v.0.1.0
|
A class used for creating and managing the application daemon. More...
Public Member Functions | |
def | __init__ (self, pidfile, stdin="/dev/null", stdout=REDIRECT_TO, stderr=REDIRECT_TO) |
Constructor. More... | |
def | daemonize (self) |
Daemonize the process and do all the routine related to that. More... | |
def | del_pid (self) |
Delete the pid file. More... | |
def | start (self) |
Start the daemon. More... | |
def | stop (self) |
Stop the daemon. More... | |
def | restart (self) |
Restart the daemon. More... | |
def | run (self) |
Default method for overriding by the child class which inherited the Daemon. More... | |
Public Attributes | |
stdin | |
stdout | |
stderr | |
pidfile | |
A class used for creating and managing the application daemon.
A generic daemon class for starting the main running function by overriding the run() method.
def Node_init.Daemon.__init__ | ( | self, | |
pidfile, | |||
stdin = "/dev/null" , |
|||
stdout = REDIRECT_TO , |
|||
stderr = REDIRECT_TO |
|||
) |
Constructor.
self | The object pointer. |
pidfile | An absolute path to the pid file of the process. |
stdin | Path for stdin forwarding |
stdout | Path for stdout forwarding |
stderr | Path for stderr forwarding |
def Node_init.Daemon.daemonize | ( | self | ) |
Daemonize the process and do all the routine related to that.
self | The object pointer. |
def Node_init.Daemon.del_pid | ( | self | ) |
Delete the pid file.
self | The object pointer. |
def Node_init.Daemon.restart | ( | self | ) |
Restart the daemon.
self | The object pointer. |
def Node_init.Daemon.run | ( | self | ) |
def Node_init.Daemon.start | ( | self | ) |
Start the daemon.
self | The object pointer. |
def Node_init.Daemon.stop | ( | self | ) |
Stop the daemon.
self | The object pointer. |
Node_init.Daemon.pidfile |
Node_init.Daemon.stderr |
Node_init.Daemon.stdin |
Node_init.Daemon.stdout |