Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
    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)  
Ejemplo n.º 4
0
    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
Ejemplo n.º 5
0
 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
Ejemplo n.º 6
0
 def __init__(self, pidfile):
   daemon.__init__(self,pidfile)    
   self.rc = rcontrol(myconf)  
Ejemplo n.º 7
0
 def __init__(self, sPidFile):
     """Initializes the rtmpd daemon"""
     global gRtmpdDaemon
     daemon.__init__(self, sPidFile, "/opt/elixys/logs/rtmpdDaemon.log")
     self.bTerminate = False
     gRtmpdDaemon = self
Ejemplo n.º 8
0
 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
Ejemplo n.º 9
0
 def __init__(self, pidfile):
     daemon.__init__(self, pidfile)
     self.rc = rcontrol(myconf)
Ejemplo n.º 10
0
 def __init__(self):
     daemon.__init__(self, 'tester')
     return
Ejemplo n.º 11
0
 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
Ejemplo n.º 12
0
 def __init__(self, sPidFile):
     """Initializes the rtmpd daemon"""
     global gRtmpdDaemon
     daemon.__init__(self, sPidFile, "/opt/elixys/logs/rtmpdDaemon.log")
     self.bTerminate = False
     gRtmpdDaemon = self