Shutdown time is now added on KeyboardInterrupt
This commit is contained in:
parent
4f0b9f8e3a
commit
6e44177907
@ -1,4 +1,5 @@
|
||||
from os import getpid, makedirs
|
||||
from time import time
|
||||
from modules.utils import *
|
||||
from modules.inline import *
|
||||
from app import app
|
||||
@ -78,4 +79,7 @@ if __name__ == "__main__":
|
||||
|
||||
app.stop()
|
||||
|
||||
makedirs(configGet("cache", "locations"), exist_ok=True)
|
||||
jsonSave({"timestamp": time()}, path.join(configGet("cache", "locations"), "shutdown_time"))
|
||||
|
||||
killProc(pid)
|
Reference in New Issue
Block a user