mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-13 14:39:28 +00:00
Update to use latest Daemon package.
This commit is contained in:
@@ -8797,12 +8797,11 @@ sub main {
|
|||||||
# ########################################################################
|
# ########################################################################
|
||||||
# Check and create PID file if user specified --pid.
|
# Check and create PID file if user specified --pid.
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
my $daemon;
|
my $daemon = Daemon->new(
|
||||||
if ( $o->get('execute') && $o->get('pid') ) {
|
daemonize => 0, # not daemoninzing, just PID file
|
||||||
# We're not daemoninzing, it just handles PID stuff.
|
pid_file => $o->get('pid'),
|
||||||
$daemon = new Daemon(o=>$o);
|
);
|
||||||
$daemon->make_PID_file();
|
$daemon->run();
|
||||||
}
|
|
||||||
|
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
# Init the --plugin.
|
# Init the --plugin.
|
||||||
|
Reference in New Issue
Block a user