Exemple #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)))
Exemple #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")))
Exemple #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))
     )
Exemple #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"))
     )
Exemple #5
0
 def handle_hup(self):
     self.controller.dispatch((None, make_json("reload", graceful=True)))
Exemple #6
0
 def handle_quit(self):
     self.controller.dispatch((None, make_json("quit")))