示例#1
0
 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()
示例#2
0
 def __init__(self, pid_file):
     Daemon.__init__(self, pid_file)
     self.stop()
示例#3
0
 def __init__(self,pid_file):
     Daemon.__init__(self, pid_file)
     self.statut()