code: def eval_command(self, cmd):
          
          if cmd == 'restart':
              self.restart()
  
          elif cmd == 'stop':
              self.stop()
  
          else:
              raise ValueError("Unknown Command passed to controller! %s" % cmd)
docs: Evaluates commands issued by internal threads. Extend this as necessary.
          :param cmd:
          :return: