Fix ps command for real.

This commit is contained in:
Daniel Nichter
2013-05-13 17:06:25 -07:00
parent 7516f458c7
commit f4df337c20

View File

@@ -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(