aboutsummaryrefslogtreecommitdiffstats
path: root/radiodiodibot
diff options
context:
space:
mode:
authorjantuomi <jans.tuomi@gmail.com>2016-07-26 15:46:35 +0300
committerjantuomi <jans.tuomi@gmail.com>2016-07-26 15:46:35 +0300
commita4af1c91a7196752d2fe8ccf7e5cbb1593e95f65 (patch)
tree1edd5754ded769aec774766cab885f759ef1e641 /radiodiodibot
parentd8d8745e7370ec0efa85e3f98da85f79b66c1422 (diff)
Add threading to UptimeService, fix response
Diffstat (limited to 'radiodiodibot')
-rwxr-xr-xradiodiodibot2
1 files changed, 2 insertions, 0 deletions
diff --git a/radiodiodibot b/radiodiodibot
index 903881c..0d067dd 100755
--- a/radiodiodibot
+++ b/radiodiodibot
@@ -12,6 +12,8 @@ from project import uptimeservice
def sigint_handler(signal, frame):
"""Exit gracefully when receiving an interrupt signal"""
+ logging.info("Stopping uptime services (if any)...")
+ uptimeservice.UptimeService.stop_services()
print("Exiting radiodiodibot...")
sys.exit(0)