mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Added requirement
This commit is contained in:
parent
79b2d05824
commit
e8fbf95c30
3
maloja
3
maloja
@ -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"
|
||||||
|
@ -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,))
|
||||||
|
Loading…
Reference in New Issue
Block a user