HTTP Server for Tux Droid
util.daemonizer.Daemonizer.Daemonizer Class Reference
Inheritance diagram for util.daemonizer.Daemonizer.Daemonizer:
Collaboration diagram for util.daemonizer.Daemonizer.Daemonizer:

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
 

Detailed Description

Class to daemonizing a program. (Unix)

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ __daemonize()

def util.daemonizer.Daemonizer.Daemonizer.__daemonize (   self,
  redirectIO,
  stdin,
  stdout,
  stderr 
)
private
Daemonize the application.

◆ destroy()

def util.daemonizer.Daemonizer.Daemonizer.destroy (   self)
Destructor of the class.

◆ start()

def util.daemonizer.Daemonizer.Daemonizer.start (   self)
Start the service as daemon.
@return: the success of the operation.

Member Data Documentation

◆ __pidfile

util.daemonizer.Daemonizer.Daemonizer.__pidfile
private

◆ __serviceFunct

util.daemonizer.Daemonizer.Daemonizer.__serviceFunct
private

The documentation for this class was generated from the following file: