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

jbonofre pushed a commit to branch activemq-5.16.x
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/activemq-5.16.x by this push:
     new 207591e  [AMQ-8425] Get process from any user in bin/activemq script
207591e is described below

commit 207591e94d221f3ba56dfc9e93be1c7be4008da2
Author: Jean-Baptiste Onofré <[email protected]>
AuthorDate: Thu Dec 23 06:45:00 2021 +0100

    [AMQ-8425] Get process from any user in bin/activemq script
    
    (cherry picked from commit c246e0926c5f803341224000fe4391cdb3f00d76)
---
 assembly/src/release/bin/activemq | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assembly/src/release/bin/activemq 
b/assembly/src/release/bin/activemq
index 145844c..c3f04f2 100755
--- a/assembly/src/release/bin/activemq
+++ b/assembly/src/release/bin/activemq
@@ -482,7 +482,7 @@ checkRunning(){
         return 2
        fi
        local activemq_pid="`cat "$pidfile"`"
-       local RET="`ps -o "pid,args" | grep "^\s*$activemq_pid\s.*java"`"
+       local RET="`ps -eo "pid,args" | grep "^\s*$activemq_pid\s.*java"`"
        if [ -n "$RET" ];then
          return 0;
        else

Reply via email to