Closed gconklin closed 4 months ago
when using the bot framework in a service, I needed a way to gracefully stop the process loop from an external trigger.
bot = WebexBot(...) def graceful_exit() cysystemd.daemon.notify(cysystemd.daemon.Notification.STOPPING) bot.stop() signal.signal(signal.SIGTERM, graceful_exit) bot.run()
when using the bot framework in a service, I needed a way to gracefully stop the process loop from an external trigger.