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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 30 11:50:30 CET 2006


Author: kevin
Date: Thu Nov 30 11:50:29 2006
New Revision: 11532

URL: http://svn.erp5.org?rev=11532&view=rev
Log:
Rename pid_dir to run_dir

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=11532&r1=11531&r2=11532&view=diff
==============================================================================
--- erp5/trunk/utils/oood/runserw.py (original)
+++ erp5/trunk/utils/oood/runserw.py Thu Nov 30 11:50:29 2006
@@ -102,7 +102,7 @@
     #########################################################
     sys.path.append('/etc/oood/') # Big ad-hoc hack
     import config
-    lock_file_path = os.path.join(config.pid_dir, 'server_pid.lock')
+    lock_file_path = os.path.join(config.run_dir, 'server_pid.lock')
     # Get the server process id which is written in the lock file.
     if not os.path.exists(lock_file_path):
       lib.log("Server - Can't stop server: it was not running !", 1)
@@ -127,7 +127,7 @@
       """
       import config
       lib.log("Server - Remove lock file and stop server", 0)
-      lock_file_path = os.path.join(config.pid_dir, 'server_pid.lock')
+      lock_file_path = os.path.join(config.run_dir, 'server_pid.lock')
       if os.path.exists(lock_file_path):
         os.remove(lock_file_path)
       sys.exit(0)
@@ -147,7 +147,7 @@
     signal.signal(signal.SIGTERM, signalHandler)
 
     # 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')
+    lock_file_path = os.path.join(config.run_dir, 'server_pid.lock')
     if os.path.exists(lock_file_path):
       lib.log("Server - Can't start a new server: another one is already started or the previous server wasn't properly stopped", 2)
       sys.exit(1)




More information about the Erp5-report mailing list