From f4df337c2081dd0d215474cc08031e27e80258a3 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Mon, 13 May 2013 17:06:25 -0700 Subject: [PATCH] Fix ps command for real. --- bin/pt-agent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pt-agent b/bin/pt-agent index 00c807ec..328ada79 100755 --- a/bin/pt-agent +++ b/bin/pt-agent @@ -7042,7 +7042,7 @@ sub get_agent_pid { chop($pid = slurp($pid_file)); } else { - my $ps_output = `ps ax | grep 'pt-agent' --daemonize | grep -v grep`; + my $ps_output = `ps ax | grep 'pt-agent --daemonize' | grep -v grep`; PTDEBUG && _d('Reading PID from ps', $ps_output); if ( !$ps_output ) { die Percona::Agent::Exception::PIDNotFound->new(