def __init__(self, sPidFile): """Initializes the fake PLC daemon""" global gFakePLCDaemon daemon.__init__(self, sPidFile, "/opt/elixys/logs/FakePLC.log") log.debug("FakePLCDaemon starting") self.bTerminate = False gFakePLCDaemon = self
def __init__(self, sPidFile): """Initializes the sequence validation daemon""" global gSequenceValidationDaemon daemon.__init__(self, sPidFile, "/opt/elixys/logs/SequenceValidation.log") self.bTerminate = False gSequenceValidationDaemon = self
def __init__(self,configfile): self._mqttQueue = Queue.Queue() self._configfile = configfile self._configAll = config() print configfile self._configAll.Open(self._configfile) self._configGeneral = config(self._configAll.subsection('Config','General')) # print "TesT",self._configALL self._pidfile = str(self._configGeneral.get(0,'PIDFILE','/var/run/gpio2mqtt.pid')) self._loghandle = None daemon.__init__(self, self._pidfile)
def __init__(self, pidfile=None, logfile=None, stdin="/dev/null", stdout="/dev/null", stderr="/dev/null"): daemon.__init__(self, pidfile, stdin, stdout, stderr) # The logfile's verbose flag is on by default. self.log = debug.logfile(logfile) self.log.verbose = True # Debug has to be turned on explicitly using -d. self.dlog = debug.tee(self.log, debug.logstream()) self.dlog.verbose = True self.log.timestamp = True self.dlog.timestamp = True
def __init__(self, pidfile): daemon.__init__(self,pidfile) self.rc = rcontrol(myconf)
def __init__(self, sPidFile): """Initializes the rtmpd daemon""" global gRtmpdDaemon daemon.__init__(self, sPidFile, "/opt/elixys/logs/rtmpdDaemon.log") self.bTerminate = False gRtmpdDaemon = self
def __init__(self, sPidFile): """Initializes the core server daemon""" global gCoreServerDaemon daemon.__init__(self, sPidFile, "/opt/elixys/logs/CoreServer.log") self.bTerminate = False gCoreServerDaemon = self
def __init__(self, pidfile): daemon.__init__(self, pidfile) self.rc = rcontrol(myconf)
def __init__(self): daemon.__init__(self, 'tester') return