Moved files to subdirectory

This commit is contained in:
2022-09-06 12:50:09 +01:00
parent 2731713ede
commit 122fdca5db
83 changed files with 17 additions and 0 deletions

17
legacy/utils/cleanup.py Normal file
View File

@@ -0,0 +1,17 @@
from twisted.internet import reactor
import main
from utils.logging.debug import debug
from utils.logging.log import log
def handler(sig, frame):
log("Received SIGINT, cleaning up")
cleanup()
def cleanup():
debug("Flushing Redis database")
main.r.flushdb()
reactor.stop()
# sys.exit(1)