Do proper shutdown
This commit is contained in:
1 parent
b7d5f167bb
commit
55cb53b34d
3 files changed
+26
-19
No files matched your search
@@ -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__':
|
||||
|
||||
Reference in new issue
Block a user