예제 #1
0
    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)
예제 #2
0
 def do_version(self, arg):
     section, option, group, program = split_spec(arg)
     mGetSupervisorVersion(self.configs, section, option)
예제 #3
0
    def do_shutdown(self, arg):
        section, option, group, program = split_spec(arg)

        mShutdown(self.configs, section, option)
예제 #4
0
    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)