1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

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 = [ neededmodules = [
"bottle", "bottle",
"waitress" "waitress",
"setproctitle"
] ]
SOURCE_URL = "https://github.com/krateng/maloja/archive/master.zip" SOURCE_URL = "https://github.com/krateng/maloja/archive/master.zip"

View File

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