This is an automated email from the ASF dual-hosted git repository.

lizhanhui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new d631670b3 [ISSUE #5270] exit with 1 when there is no process to 
shutdown (#5271)
d631670b3 is described below

commit d631670b3eb0c811d4e3a73192607262c1eb55dc
Author: lk <[email protected]>
AuthorDate: Tue Oct 11 18:44:54 2022 +0800

    [ISSUE #5270] exit with 1 when there is no process to shutdown (#5271)
---
 distribution/bin/mqshutdown | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/distribution/bin/mqshutdown b/distribution/bin/mqshutdown
index df2da0c31..f4b58e2b7 100644
--- a/distribution/bin/mqshutdown
+++ b/distribution/bin/mqshutdown
@@ -26,7 +26,7 @@ case $1 in
     pid=`ps ax | grep -i 'org.apache.rocketmq.broker.BrokerStartup' |grep java 
| grep -v grep | awk '{print $1}'`
     if [ -z "$pid" ] ; then
             echo "No mqbroker running."
-            exit -1;
+            exit 1;
     fi
 
     echo "The mqbroker(${pid}) is running..."
@@ -40,7 +40,7 @@ case $1 in
     pid=`ps ax | grep -i 
'org.apache.rocketmq.container.BrokerContainerStartup' |grep java | grep -v 
grep | awk '{print $1}'`
     if [ -z "$pid" ] ; then
             echo "No broker container running."
-            exit -1;
+            exit 1;
     fi
 
     echo "The broker container(${pid}) is running..."
@@ -54,7 +54,7 @@ case $1 in
     pid=`ps ax | grep -i 'org.apache.rocketmq.namesrv.NamesrvStartup' |grep 
java | grep -v grep | awk '{print $1}'`
     if [ -z "$pid" ] ; then
             echo "No mqnamesrv running."
-            exit -1;
+            exit 1;
     fi
 
     echo "The mqnamesrv(${pid}) is running..."
@@ -68,7 +68,7 @@ case $1 in
     pid=`ps ax | grep -i 'org.apache.rocketmq.controller.ControllerStartup' 
|grep java | grep -v grep | awk '{print $1}'`
     if [ -z "$pid" ] ; then
             echo "No mqcontroller running."
-            exit -1;
+            exit 1;
     fi
 
     echo "The mqcontroller(${pid}) is running..."
@@ -82,7 +82,7 @@ case $1 in
     pid=`ps ax | grep -i 'org.apache.rocketmq.proxy.ProxyStartup' |grep java | 
grep -v grep | awk '{print $1}'`
     if [ -z "$pid" ] ; then
             echo "No mqproxy running."
-            exit -1;
+            exit 1;
     fi
 
     echo "The mqproxy(${pid}) is running..."

Reply via email to