Ejemplo n.º 1
0
 def __init__(self, srvName, srvDesc, defCfgFilePath):
     Singleton.__init__(self)
     self.workDir = None
     self.cfgFilePath = None
     # used by relativePath
     self.workDir = self.workDir or os.getcwd()
     self.appDir = os.path.dirname(sys.argv[0])
     self.action = self._parseArgs()  # what to do
     pidFilePath = '%s.pid' % self.relativePath(self.workDir, srvName)
     Daemon.__init__(self, pidFilePath, srvDesc)
     self.cfgFilePath = self.cfgFilePath or self.relativePath(
         self.appDir, defCfgFilePath)
     self.daemonMode = False
     self.signalMutex = threading.Lock()  # signal processing flag
Ejemplo n.º 2
0
 def __init__(self):
     Singleton.__init__(self)
     self.__options = {}
Ejemplo n.º 3
0
 def __init__(self):
     Singleton.__init__(self)
     self.Settings = ConfigParser()
     self.Settings.optionxform = str
Ejemplo n.º 4
0
 def __init__(self):
     Singleton.__init__(self)
     self.__options = {}
Ejemplo n.º 5
0
 def __init__(self):
     Singleton.__init__(self)
Ejemplo n.º 6
0
 def __init__(self):
     Singleton.__init__(self)