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)
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)
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)
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)
def start(self): cmd = os.path.join(Conf.getNodeServiceDir(),"service.sh") + " " + self.serviceScript + " start " + self.host return os.system(cmd)
def start(self): cmd = os.path.join( Conf.getNodeServiceDir(), "service.sh") + " " + self.serviceScript + " start " + self.host return os.system(cmd)