def __init__(self, args, pid_file): self.is_force = args.force self.worker = int(args.worker) Daemon.__init__(self, pid_file) if args.force == False: self.start() if args.force == True: self.restart()
def __init__(self, pid_file): Daemon.__init__(self, pid_file) self.stop()
def __init__(self,pid_file): Daemon.__init__(self, pid_file) self.statut()