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
def __init__(self): Singleton.__init__(self) self.__options = {}
def __init__(self): Singleton.__init__(self) self.Settings = ConfigParser() self.Settings.optionxform = str
def __init__(self): Singleton.__init__(self)