activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mschoech...@apache.org
Subject [01/12] activemq git commit: AMQ-5733: return exitcode 0 if stop was sucessful
Date Mon, 29 Jun 2015 21:26:18 GMT
Repository: activemq
Updated Branches:
  refs/heads/master f3fc58941 -> 06202097a


AMQ-5733: return exitcode 0 if stop was sucessful

according to http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
the exitcode should be 0, although this is a abnormal termination way


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/e52b7dc3
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/e52b7dc3
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/e52b7dc3

Branch: refs/heads/master
Commit: e52b7dc368572895cbd7b2b48eb8c3573e767c04
Parents: af999fe
Author: Marc Schoechlin <marc.schoechlin@breuninger.de>
Authored: Tue Apr 21 05:58:31 2015 +0200
Committer: Marc Schoechlin <marc.schoechlin@breuninger.de>
Committed: Sat Jun 6 15:16:08 2015 +0200

----------------------------------------------------------------------
 assembly/src/release/bin/activemq | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/e52b7dc3/assembly/src/release/bin/activemq
----------------------------------------------------------------------
diff --git a/assembly/src/release/bin/activemq b/assembly/src/release/bin/activemq
index 100e0cd..ad30641 100755
--- a/assembly/src/release/bin/activemq
+++ b/assembly/src/release/bin/activemq
@@ -498,7 +498,7 @@ invoke_stop(){
          echo
          echo "INFO: Regular shutdown not successful,  sending SIGKILL to process with pid
'$PID'"
          kill -KILL $PID
-         RET="1"
+         RET="$?"
        fi
     elif [ -f "$ACTIVEMQ_PIDFILE" ];then
        echo "ERROR: No or outdated process id in '$ACTIVEMQ_PIDFILE'"


Mime
View raw message