mirror of https://github.com/apache/activemq.git
AMQ-8226 match any amount of spaces before activemq PID in bin/activemq startup script
This commit is contained in:
parent
4da42dfe18
commit
f1190f8fed
|
@ -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