Improve the parent daemon message.

This commit is contained in:
Daniel Nichter
2013-04-10 17:23:27 -06:00
parent d63bc8c9d1
commit 96c681d07c

View File

@@ -5140,10 +5140,16 @@ sub run_agent {
%daemon_args,
parent_exit => sub {
my $child_pid = shift;
print "pt-agent is running as PID $child_pid, "
. ($pid_file ? "PID file $pid_file, " : "no PID file, ")
. ($log_file ? "log file $log_file. " : "no log file. ")
. " Configure the agent at https://pws.percona.com.\n";
print "pt-agent has daemonized and is running as PID $child_pid:
--lib " . ($lib_dir || '') . "
--log " . ($log_file || '') . "
--pid " . ($pid_file || '') . "
These values can change if a different configuration is received.
Configure the agent at https://pws.percona.com/agents.
",
}
);
$daemon->run();