Do proper shutdown

This commit is contained in:
Ruud committed 2012-01-31 01:00:54 +01:00
1 parent b7d5f167bb
commit 55cb53b34d
3 files changed
+26 -19

No files matched your search

+5
View File
@@ -4,6 +4,7 @@ from signal import signal, SIGTERM
import os
import subprocess
import sys
import time
# Root path
@@ -53,6 +54,10 @@ def main():
if not restart:
break
from couchpotato.core.event import fireEvent
fireEvent('app.crappy_shutdown', single = True)
time.sleep(1)
sys.exit()
if __name__ == '__main__':