예제 #1
0
파일: cli.py 프로젝트: blha303/DoFler
    def do_restart(self, s):
        '''
        restart [SERVICENAME]

        Restarts the designated service. 
        '''
        api = self.getapi()
        if s == 'all':
            for service in api.services():
                api.restart(service)
        else:
            api.restart(s)
        self.svcs_disp(api.services())
예제 #2
0
파일: cli.py 프로젝트: blha303/DoFler
    def do_stop(self, s):
        '''
        stop [SERVICENAME]

        Stops the designated service. 
        '''
        api = self.getapi()
        if s == 'all':
            for service in api.services():
                api.stop(service)
        else:
            api.stop(s)
        self.svcs_disp(api.services())
예제 #3
0
    def do_restart(self, s):
        '''
        restart [SERVICENAME]

        Restarts the designated service. 
        '''
        api = self.getapi()
        if s == 'all':
            for service in api.services():
                api.restart(service)
        else:
            api.restart(s)
        self.svcs_disp(api.services())
예제 #4
0
    def do_stop(self, s):
        '''
        stop [SERVICENAME]

        Stops the designated service. 
        '''
        api = self.getapi()
        if s == 'all':
            for service in api.services():
                api.stop(service)
        else:
            api.stop(s)
        self.svcs_disp(api.services())
예제 #5
0
파일: cli.py 프로젝트: blha303/DoFler
    def do_services(self, s):
        '''
        services

        Lists all of the installed services and their running status. 
        '''
        api = self.getapi()
        self.svcs_disp(api.services())
예제 #6
0
    def do_services(self, s):
        '''
        services

        Lists all of the installed services and their running status. 
        '''
        api = self.getapi()
        self.svcs_disp(api.services())