diff options
author | Mark Wells <mark@freeside.biz> | 2012-12-11 14:38:07 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-12-11 14:38:07 -0800 |
commit | 913bd0405d6eb0db41b9944dfd42eb1f97d18ca9 (patch) | |
tree | ce51c6db058fe65de6f37ec5ce047dc75007cfa3 /FS/bin/freeside-daily | |
parent | bda74e13569c8531e77e8dcd01d9da9038f3c4d0 (diff) |
system log, #18333
Diffstat (limited to 'FS/bin/freeside-daily')
-rwxr-xr-x | FS/bin/freeside-daily | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/bin/freeside-daily b/FS/bin/freeside-daily index 8e8ae4ff9..65e3ebd97 100755 --- a/FS/bin/freeside-daily +++ b/FS/bin/freeside-daily @@ -4,6 +4,7 @@ use strict; use Getopt::Std; use FS::UID qw(adminsuidsetup); use FS::Conf; +use FS::Log; &untaint_argv; #what it sounds like (eww) use vars qw(%opt); @@ -11,6 +12,8 @@ getopts("p:a:d:vl:sy:nmrkg:o", \%opt); my $user = shift or die &usage; adminsuidsetup $user; +my $log = FS::Log->new('daily'); +$log->info('start'); #you can skip this by not having a NetworkMonitoringSystem configured use FS::Cron::nms_report qw(nms_report); @@ -74,6 +77,8 @@ unlink <${deldir}.CGItemp*>; use FS::Cron::backup qw(backup); backup(); +$log->info('finish'); + ### # subroutines ### |