foreach (@config) {
next unless /^(\b)\s+(\b)\s+(\b)/;
my $file = $1;
my $versions = $2;
my $pidfile = $3;
####
Gzip => 'lib',
Post => sub{
open(IN, $pidfile);
$appid = ;
chomp $appid;
kill("HUP", $appid); },
Dir => '/var/log/old',
Flock => 'yes',
##
##
File => $file,
Count => $versions,
Gzip => 'lib',
Post => sub{
open(IN, $pidfile) or die "$pidfile: $!";
$appid = ;
chomp $appid;
kill("HUP", $appid);
},
Dir => '/var/log/old',
Flock => 'yes',
##
##
if (defined $log) { print "Looks ok..\n";
} else {
die "An error accured processing config data\n";
}
$log->rotate();
undef $log;
}
##
##
defined $log or die "An error accured processing config data\n";
print "Looks ok..\n";
$log->rotate();
}