mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
Fix ps command.
This commit is contained in:
@@ -6861,7 +6861,6 @@ sub agent_status {
|
|||||||
|
|
||||||
my %have_service;
|
my %have_service;
|
||||||
if ( -d "$lib_dir/services" ) {
|
if ( -d "$lib_dir/services" ) {
|
||||||
_info("Services:");
|
|
||||||
SERVICE:
|
SERVICE:
|
||||||
foreach my $service_file ( glob "$lib_dir/services/*" ) {
|
foreach my $service_file ( glob "$lib_dir/services/*" ) {
|
||||||
my $service = eval {
|
my $service = eval {
|
||||||
@@ -7043,7 +7042,7 @@ sub get_agent_pid {
|
|||||||
chop($pid = slurp($pid_file));
|
chop($pid = slurp($pid_file));
|
||||||
}
|
}
|
||||||
else {
|
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);
|
PTDEBUG && _d('Reading PID from ps', $ps_output);
|
||||||
if ( !$ps_output ) {
|
if ( !$ps_output ) {
|
||||||
die Percona::Agent::Exception::PIDNotFound->new(
|
die Percona::Agent::Exception::PIDNotFound->new(
|
||||||
|
Reference in New Issue
Block a user