HTTP Server for Tux Droid
|
Public Member Functions | |
def | __init__ (self, name, logPath, serviceFunct, redirectIO=True) |
def | start (self) |
def | destroy (self) |
Private Member Functions | |
def | __daemonize (self, redirectIO, stdin, stdout, stderr) |
Private Attributes | |
__pidfile | |
__serviceFunct | |
Class to daemonizing a program. (Unix)
def util.daemonizer.Daemonizer.Daemonizer.__init__ | ( | self, | |
name, | |||
logPath, | |||
serviceFunct, | |||
redirectIO = True |
|||
) |
Constructor of the class. @param name: name of the program. @param logPath: path of the log file. @param serviceFunct: pointer to the service to run. @param redirectIO: indicate if the stdout and stdin must be redirected in the log file.
|
private |
Daemonize the application.
def util.daemonizer.Daemonizer.Daemonizer.destroy | ( | self | ) |
Destructor of the class.
def util.daemonizer.Daemonizer.Daemonizer.start | ( | self | ) |
Start the service as daemon. @return: the success of the operation.
|
private |
|
private |