Moved user log files to /var/local/log
[clearscm.git] / bin / cleantmp.pl
index 79c567a..c7b1b19 100755 (executable)
@@ -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,