X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fcleantmp.pl;h=c7b1b19d5b30f7d856da560022751d64facd524f;hb=ca153194fe711932fe62a4753889bc09e35f13ec;hp=79c567a89d900cf095bc01195d0800f43c0e73cf;hpb=3226ce71cef10280e3827ac4429cc882f1ebac37;p=clearscm.git diff --git a/bin/cleantmp.pl b/bin/cleantmp.pl index 79c567a..c7b1b19 100755 --- a/bin/cleantmp.pl +++ b/bin/cleantmp.pl @@ -82,7 +82,7 @@ my %opts = ( debug => sub { set_debug }, tmp => File::Spec->tmpdir(), conf => "$FindBin::Bin/../etc/$script.conf", - logpath => '/var/log', + logpath => '/var/local/log', sleep => 60, ); @@ -144,7 +144,6 @@ sub FileCreated { } # if } # if - last; } # if } # for @@ -153,6 +152,8 @@ sub FileCreated { return; } # FileCreated +$SIG{USR1} = \&FileCreated; + ## Main GetOptions ( \%opts,