Added requirement

This commit is contained in:
Krateng 2019-02-16 21:21:29 +01:00
parent 79b2d05824
commit e8fbf95c30
2 changed files with 5 additions and 7 deletions

3
maloja
View File

@ -9,7 +9,8 @@ import stat
neededmodules = [
"bottle",
"waitress"
"waitress",
"setproctitle"
]
SOURCE_URL = "https://github.com/krateng/maloja/archive/master.zip"

View File

@ -12,6 +12,7 @@ from urllib.error import *
import sys
import signal
import os
import setproctitle
MAIN_PORT = 42010
@ -114,12 +115,8 @@ def static_html(name):
signal.signal(signal.SIGINT, graceful_exit)
signal.signal(signal.SIGTERM, graceful_exit)
#rename process, not important
try:
import setproctitle
setproctitle.setproctitle("Maloja")
except:
pass
#rename process, this is now required for the daemon manager to work
setproctitle.setproctitle("Maloja")
## start database server
_thread.start_new_thread(SourceFileLoader("database","database.py").load_module().runserver,(DATABASE_PORT,))