Example #1
0
 def reload(self):
     # We need to transfer the control to the loop's thread
     self.controller.loop.add_callback_from_signal(
         self.controller.dispatch,
         (None, make_json("reload", graceful=True)))
Example #2
0
 def quit(self):
     # We need to transfer the control to the loop's thread
     self.controller.loop.add_callback_from_signal(
         self.controller.dispatch, (None, make_json("quit")))
Example #3
0
 def reload(self):
     # We need to transfer the control to the loop's thread
     self.controller.loop.add_callback_from_signal(
         self.controller.dispatch,
         (None, make_json("reload", graceful=True))
     )
Example #4
0
 def quit(self):
     # We need to transfer the control to the loop's thread
     self.controller.loop.add_callback_from_signal(
         self.controller.dispatch, (None, make_json("quit"))
     )
Example #5
0
 def handle_hup(self):
     self.controller.dispatch((None, make_json("reload", graceful=True)))
Example #6
0
 def handle_quit(self):
     self.controller.dispatch((None, make_json("quit")))