AMQ-8226 match any amount of spaces before activemq PID in bin/activemq startup script

This commit is contained in:
charlie-aws 2021-04-15 16:07:14 -07:00
parent 4da42dfe18
commit f1190f8fed
1 changed files with 1 additions and 1 deletions

View File

@ -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