def do_status(self, arg): section, option, group, program = split_spec(arg) if group == None or program == None: mGetAllProcessInfo(self.configs, section, option) else: mGetProcessInfo(self.configs, section, option, group, program)
def do_version(self, arg): section, option, group, program = split_spec(arg) mGetSupervisorVersion(self.configs, section, option)
def do_shutdown(self, arg): section, option, group, program = split_spec(arg) mShutdown(self.configs, section, option)
def do_restart(self, arg): section, option, group, program = split_spec(arg) mStopProcess(self.configs, section, option, group, program) mStartProcess(self.configs, section, option, group, program)