stop behavior

fix bug caused by a uncomplete change which renames the pidfile for a
running shutdown task
This commit is contained in:
Marc Schoechlin 2015-01-04 12:41:34 +01:00
parent 0eb45b434d
commit 250bc9ea95
1 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ invokeJar(){
$ACTIVEMQ_CYGWIN \
-jar \"${ACTIVEMQ_HOME}/bin/activemq.jar\" $COMMANDLINE_ARGS --pid $PID &
RET=\"\$?\"; APID=\"\$!\";
echo \$APID > "$ACTIVEMQ_DATA/stop.pid"; exit \$RET" $DOIT_POSTFIX
echo \$APID > "${PIDFILE}.stop"; exit \$RET" $DOIT_POSTFIX
RET="$?"
else
$EXEC_OPTION $DOIT_PREFIX "\"$JAVACMD\" $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
@ -513,7 +513,7 @@ invoke_stop(){
exit 0
fi
rm -f "$ACTIVEMQ_PIDFILE" >/dev/null 2>&1
rm -f "$ACTIVEMQ_DATA/stop.pid" >/dev/null 2>&1
rm -f "${PIDFILE}.stop" >/dev/null 2>&1
exit $RET
}