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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 6 13:10:38 CEST 2007


Author: bartek
Date: Fri Apr  6 13:10:34 2007
New Revision: 13998

URL: http://svn.erp5.org?rev=13998&view=rev
Log:
print startup messages on stdout so that we know what's going on

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=13998&r1=13997&r2=13998&view=diff
==============================================================================
--- erp5/trunk/utils/oood/runserw.py (original)
+++ erp5/trunk/utils/oood/runserw.py Fri Apr  6 13:10:34 2007
@@ -151,13 +151,17 @@
     # Create a lock file to not run more than one server and to save the pid
     lock_file_path = os.path.join(config.run_dir, 'server_pid.lock')
     if os.path.exists(lock_file_path):
-      Log.info("Server - Can't start a new server: another one is already started or the previous server wasn't properly stopped")
+      message = "Server - Can't start a new server: another one is already started or the previous server wasn't properly stopped (file %s exists)" % lock_file_path
+      Log.info(message)
+      print message
       sys.exit(1)
     lock_file = open(lock_file_path, 'w')
     server_pid = os.getpid()
     lock_file.write(str(server_pid))
     lock_file.close()
-    Log.info("Server - Started as process %s" % server_pid)
+    message = "Server - Started as process %s" % server_pid
+    Log.info(message)
+    print message
 
     # Start the server core
     proc = Procesor()




More information about the Erp5-report mailing list