def killYokadid(pidFile): """Kill Yokadi daemon @param pidFile: file where the pid of the daemon is stored """ # reuse Daemon.stop() code daemon = Daemon(pidFile) daemon.stop()
def __init__(self, options): Daemon.__init__(self, options.pidFile, stdout=options.logFile, stderr=options.logFile) self.options = options