diff --git a/maloja b/maloja index 0f29f5f..30a431a 100755 --- a/maloja +++ b/maloja @@ -9,7 +9,8 @@ import stat neededmodules = [ "bottle", - "waitress" + "waitress", + "setproctitle" ] SOURCE_URL = "https://github.com/krateng/maloja/archive/master.zip" diff --git a/server.py b/server.py index 0ca0b3d..e5bba39 100755 --- a/server.py +++ b/server.py @@ -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,))