Detailed description |
|
I have added a quick hack to support a PID-file, so that the server can be used within normal init-scripts on Linux.
This patch assumes that osaas is installed under /opt/gispatcher/osaas-server which will be the case in my work. See next patch.
What is missing:
* nearly all needed PID-file-handling like removing, removing stale PID-files etc...
Index: server/startosaas.py
===================================================================
--- server/startosaas.py (Revision 37)
+++ server/startosaas.py (Arbeitskopie)
@@ -7,6 +7,14 @@
# Read the file GPL.txt coming with the software for details.
from osaas.run import main
+import os
+
if __name__ == "__main__":
+ print os.getpid()
+ pidfile = "/opt/gispatcher/osaas-server/osaas.pid"
+ f = open(pidfile, "w")
+ f.write("%d" % os.getpid())
+ f.close()
+
main()
|
|