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