From 207591e94d221f3ba56dfc9e93be1c7be4008da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Baptiste=20Onofr=C3=A9?= Date: Thu, 23 Dec 2021 06:45:00 +0100 Subject: [PATCH] [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 145844c98f..c3f04f2e5f 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