示例#1
0
 def stop(self,port):
     logger.info("stop")
     filenames = self.serviceScript.split("/")
     filename = filenames[-1]
     cmd = os.path.join(Conf.getNodeServiceDir(),"service.sh") + " " + filename + " stop " + str(port)
     logger.info(cmd)
     return os.system(cmd)
示例#2
0
 def stopAll(self):
     filenames = self.serviceScript.split("/")
     filename = filenames[-1]
     cmd = os.path.join(Conf.getNodeServiceDir(),
                        "service.sh") + " " + filename + " stopAll"
     logger.info(cmd)
     return os.system(cmd)
示例#3
0
 def stop(self, port):
     logger.info("stop")
     filenames = self.serviceScript.split("/")
     filename = filenames[-1]
     cmd = os.path.join(
         Conf.getNodeServiceDir(),
         "service.sh") + " " + filename + " stop " + str(port)
     logger.info(cmd)
     return os.system(cmd)
示例#4
0
 def stopAll(self):
     filenames = self.serviceScript.split("/")
     filename = filenames[-1]
     cmd = os.path.join(Conf.getNodeServiceDir(),"service.sh") + " " + filename  + " stopAll";
     logger.info(cmd)
     return os.system(cmd)
示例#5
0
 def start(self):
     cmd = os.path.join(Conf.getNodeServiceDir(),"service.sh") + " " + self.serviceScript + " start " + self.host
     return os.system(cmd)
示例#6
0
 def start(self):
     cmd = os.path.join(
         Conf.getNodeServiceDir(),
         "service.sh") + " " + self.serviceScript + " start " + self.host
     return os.system(cmd)