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:
Jean-Baptiste Onofré 2021-04-16 08:11:02 +02:00 committed by GitHub
commit bd5af82944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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