mirror of https://github.com/apache/activemq.git
Merge pull request #648 from Charlie-chenchrl/AMQ-8226
AMQ-8226 match any amount of spaces before activemq PID in bin/active…
This commit is contained in:
commit
bd5af82944
|
@ -476,7 +476,7 @@ checkRunning(){
|
|||
return 2
|
||||
fi
|
||||
local activemq_pid="`cat "$pidfile"`"
|
||||
local RET="`ps -o "pid,args" | grep "^$activemq_pid\s.*java"`"
|
||||
local RET="`ps -o "pid,args" | grep "^\s*$activemq_pid\s.*java"`"
|
||||
if [ -n "$RET" ];then
|
||||
return 0;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue