diff --git a/assembly/src/release/bin/activemq b/assembly/src/release/bin/activemq index 66fca3eeb2..07af279fda 100755 --- a/assembly/src/release/bin/activemq +++ b/assembly/src/release/bin/activemq @@ -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