mirror of https://github.com/apache/activemq.git
[AMQ-8425] Get process from any user in bin/activemq script
(cherry picked from commit c246e0926c
)
This commit is contained in:
parent
e52b1bd0ed
commit
207591e94d
|
@ -482,7 +482,7 @@ checkRunning(){
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
local activemq_pid="`cat "$pidfile"`"
|
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
|
if [ -n "$RET" ];then
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue