From 7516f458c76b624a6033313a6c79e6475a0c4da2 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Mon, 13 May 2013 17:04:06 -0700 Subject: [PATCH] Fix ps command. --- bin/pt-agent | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/pt-agent b/bin/pt-agent index 343b38e1..00c807ec 100755 --- a/bin/pt-agent +++ b/bin/pt-agent @@ -6861,7 +6861,6 @@ sub agent_status { my %have_service; if ( -d "$lib_dir/services" ) { - _info("Services:"); SERVICE: foreach my $service_file ( glob "$lib_dir/services/*" ) { my $service = eval { @@ -7043,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(