Replace cat $PID_FILE to pgrep -F $PID_FILE