def stop()

in moneo.py [0:0]


    def stop(self):
        '''Stops Moneo monitoring on hosts listed in the specified host ini file'''
        while True:
            confirm = input("Are you sure you would like to perform a '" + self.args.type
                            + "' shutdown of Moneo? (Y/n)\n")
            if confirm.upper() == 'Y':
                if self.args.type == 'workers' or self.args.type == 'full':
                    self.shutdown_worker(self.args.host_file, self.args.fork_processes)
                    print("Moneo workers is Shutting down \n")
                if self.args.type == 'manager' or self.args.type == 'full':
                    self.shutdown_manager(user=self.args.user, manager_host=self.args.manager_host)
                    print("Moneo manager is Shutting down \n")
                logging.info('Moneo is Shutting down')
                return 0
            elif confirm.upper() == 'N':
                print("Canceling request to shutdown Moneo \n")
                logging.info('Canceling request to shutdown Moneo')
                return 0
            else:
                print("Input not recognized\n")