code: def stop_request(self, stop_now='0'):
          
          self.app.interrupted = (stop_now == '1')
          self.app.will_stop = True
  
          return True
docs: Request the daemon to stop
  
          If `stop_now` is set to '1' the daemon will stop now. Else, the daemon
          will enter the stop wait mode. In this mode the daemon stops its activity and
          waits until it receives a new `stop_now` request to stop really.
  
          :param stop_now: stop now or go to stop wait mode
          :type stop_now: bool
          :return: None