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

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


The following commit(s) were added to refs/heads/main by this push:
     new c246e09  [AMQ-8425] Get process from any user in bin/activemq script
     new ba98a39  Merge pull request #739 from jbonofre/AMQ-8425
c246e09 is described below

commit c246e0926c5f803341224000fe4391cdb3f00d76
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
---
 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