X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-daily;h=1a2b539796dfcbd13c7f905647254830b728ca5f;hb=2ca291caff85cdd292370a944be1e4bacd4583a7;hp=e1463f5da59ea39fa701f38fdd42b56f9c3f1b93;hpb=691b4de7c0a7d0e39bebe2ea7fadea5fb21b1539;p=freeside.git diff --git a/FS/bin/freeside-daily b/FS/bin/freeside-daily index e1463f5da..1a2b53979 100755 --- a/FS/bin/freeside-daily +++ b/FS/bin/freeside-daily @@ -8,7 +8,7 @@ use FS::Log; &untaint_argv; #what it sounds like (eww) use vars qw(%opt); -getopts("p:a:d:vl:sy:nmrkg:o", \%opt); +getopts("p:a:d:vl:sy:nmqrkg:ox", \%opt); my $user = shift or die &usage; adminsuidsetup $user; @@ -24,6 +24,10 @@ $log->info('start'); use FS::Cron::nms_report qw(nms_report); nms_report(%opt); +#you can skip this by not having any vitelity exports configured +use FS::Cron::lnp_vitelity qw(lnp_vitelity); +lnp_vitelity(%opt); + #no way to skip this yet, but should be harmless/quick use FS::Cron::expire_banned_pay qw(expire_banned_pay); expire_banned_pay(%opt); @@ -87,14 +91,18 @@ export_batch_submit(%opt); use FS::Cron::send_subscribed qw(send_subscribed); send_subscribed(%opt); +#does nothing unless quotation_disable_after_days is set. +use FS::Cron::disable_quotation qw(disable_quotation); +disable_quotation(); + #clears out cacti imports & deletes select database cache files use FS::Cron::cleanup qw( cleanup cleanup_before_backup ); cleanup_before_backup(); #backup should be last -#you can skip this just by not having the config +#you can skip this just by not having the config (or with the -x option) use FS::Cron::backup qw(backup); -backup(); +backup() unless $opt{'x'}; #except we'd rather not start cleanup jobs until the backup is done cleanup( quiet => !$opt{'v'} ); @@ -115,7 +123,7 @@ sub untaint_argv { } sub usage { - die "Usage:\n\n freeside-daily [ -d 'date' ] [ -y days ] [ -a agentnum,agentnum,... ] [ -s ] [ -v ] [ -l level ] [ -m ] [ -k ] user [ custnum custnum ... ]\n"; + die "Usage:\n\n freeside-daily [ -d 'date' ] [ -y days ] [ -a agentnum,agentnum,... ] [ -s ] [ -v ] [ -l level ] [ -m ] [ -k ] [ -x ] user [ custnum custnum ... ]\n"; } ### @@ -128,7 +136,7 @@ freeside-daily - Run daily billing and invoice collection events. =head1 SYNOPSIS - freeside-daily [ -d 'date' ] [ -y days ] [ -a agentnum,agentnum,... ] [ -s ] [ -o ] [ -v ] [ -l level ] [ -m ] [ -r ] [ -k ] user [ custnum custnum ... ] + freeside-daily [ -d 'date' ] [ -y days ] [ -a agentnum,agentnum,... ] [ -s ] [ -o ] [ -v ] [ -l level ] [ -m [ -q ] [ -r ] ] [ -k ] user [ custnum custnum ... ] =head1 DESCRIPTION @@ -167,10 +175,14 @@ the bill and collect methods of a cust_main object. See L. -m: Multi-process mode uses the job queue for multi-process and/or multi-machine billing. + -q: When using multi-process mode, queue a additional billing job even if ones for the customer are already in the queue + -r: Multi-process mode dry run option -k: skip notify_flat_delay + -x: skip backup + user: Typically "fs_daily" custnum: if one or more customer numbers are specified, only bills those