[Erp5-report] r11449 - /erp5/trunk/utils/oood/runserw.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Nov 22 19:02:01 CET 2006


Author: kevin
Date: Wed Nov 22 19:02:00 2006
New Revision: 11449

URL: http://svn.erp5.org?rev=11449&view=rev
Log:
Create the lockfile earlier

Modified:
    erp5/trunk/utils/oood/runserw.py

Modified: erp5/trunk/utils/oood/runserw.py
URL: http://svn.erp5.org/erp5/trunk/utils/oood/runserw.py?rev=11449&r1=11448&r2=11449&view=diff
==============================================================================
--- erp5/trunk/utils/oood/runserw.py (original)
+++ erp5/trunk/utils/oood/runserw.py Wed Nov 22 19:02:00 2006
@@ -35,17 +35,6 @@
 
 if __name__ == '__main__':
 
-  # Start the server core
-  proc = Procesor()
-
-  # Debug mode or not ?
-  try:
-    debug = (sys.argv[1] == 'debug')
-  except IndexError:
-    debug = False
-  if debug:
-    lib.log("Server - Started in debug mode", 1)
-
   # Create a lock file to not run more than one server and to save the pid
   lock_file_path = os.path.join(config.pid_dir, 'server_pid.lock')
   if os.path.exists(lock_file_path):
@@ -63,6 +52,17 @@
       os.remove(file)
   atexit.register(cleanLock)
 
+  # Start the server core
+  proc = Procesor()
+
+  # Debug mode or not ?
+  try:
+    debug = (sys.argv[1] == 'debug')
+  except IndexError:
+    debug = False
+  if debug:
+    lib.log("Server - Started in debug mode", 1)
+
   # Some debug stuff
   if debug:
     d = open('test.odt').read()




More information about the Erp5-report mailing list