svn commit: r1040795 - /ofbiz/trunk/debian/ofbiz-framework.ofbiz.init

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1040795 - /ofbiz/trunk/debian/ofbiz-framework.ofbiz.init

doogie-3
Author: doogie
Date: Tue Nov 30 22:03:23 2010
New Revision: 1040795

URL: http://svn.apache.org/viewvc?rev=1040795&view=rev
Log:
There is a race condition during shutdown, where the ofbiz java process
is no longer up, and responding to status requests, but the jsvc process
that managed the pid file has not yet stopped.  This means that the
existance test of the pidfile may succeed, but the removal of the
pidfile will fail, as the jsvc process itself removes it.  So, do a
forced removal, which then allows the rm to succeed, and the init script
no longer exits early.

Modified:
    ofbiz/trunk/debian/ofbiz-framework.ofbiz.init

Modified: ofbiz/trunk/debian/ofbiz-framework.ofbiz.init
URL: http://svn.apache.org/viewvc/ofbiz/trunk/debian/ofbiz-framework.ofbiz.init?rev=1040795&r1=1040794&r2=1040795&view=diff
==============================================================================
--- ofbiz/trunk/debian/ofbiz-framework.ofbiz.init (original)
+++ ofbiz/trunk/debian/ofbiz-framework.ofbiz.init Tue Nov 30 22:03:23 2010
@@ -272,7 +272,7 @@ stop() {
  esac
  wait_for_stop
  if [ -e "$PIDFILE" ]; then
- rm "$PIDFILE"
+ rm -f "$PIDFILE"
  fi
 }