From f1ec4556652c24192a843dd82a861cb884bc6e75 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 21 Nov 2019 10:49:23 -0500 Subject: [PATCH] Add some debug to logrot --- scripts/zmdc.pl.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in index 3a53c03ff..292c3822b 100644 --- a/scripts/zmdc.pl.in +++ b/scripts/zmdc.pl.in @@ -166,6 +166,7 @@ if ( !$server_up ) { # Server is not up. Some commands can still be handled if ( $command eq 'logrot' ) { # If server is not running, then logrotate doesn't need to do anything. + Debug("Server is not running, logrotate doesn't need to do anything"); exit(); } if ( $command eq 'check' ) { @@ -631,8 +632,11 @@ sub logrot { logReinit(); foreach my $process ( values %pid_hash ) { if ( $process->{pid} ) { + Debug("Hupping $$process{command} at $$process{pid}"); # && $process->{command} =~ /^zm.*\.pl/ ) { kill('HUP', $process->{pid}); + } else { + Debug("Not Hupping $$process{command}"); } } }