mirror of
https://github.com/apache/activemq.git
synced 2025-02-09 03:25:33 +00:00
AMQ-8226 match any amount of spaces before activemq PID in bin/activemq startup script
(cherry picked from commit f1190f8feddb68e27eb1b7484f2a0928e32996f9)
This commit is contained in:
parent
82a169c538
commit
ec95c6f948
@ -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…
x
Reference in New Issue
Block a user