[freeside-commits] freeside/FS/bin freeside-daily, 1.23.2.1, 1.23.2.2
Ivan,,,
ivan at wavetail.420.am
Fri Apr 17 05:08:50 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv18180/FS/bin
Modified Files:
Tag: FREESIDE_1_7_BRANCH
freeside-daily
Log Message:
backport freeside-daily -m and cust_main::bill_and_collect to 1.7, RT#4412
Index: freeside-daily
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-daily,v
retrieving revision 1.23.2.1
retrieving revision 1.23.2.2
diff -u -d -r1.23.2.1 -r1.23.2.2
--- freeside-daily 9 Jun 2007 00:43:15 -0000 1.23.2.1
+++ freeside-daily 17 Apr 2009 12:08:48 -0000 1.23.2.2
@@ -6,7 +6,7 @@
&untaint_argv; #what it sounds like (eww)
use vars qw(%opt);
-getopts("p:a:d:vsy:n", \%opt);
+getopts("p:a:d:vl:sy:nmk", \%opt);
my $user = shift or die &usage;
adminsuidsetup $user;
@@ -14,12 +14,19 @@
use FS::Cron::bill qw(bill);
bill(%opt);
-use FS::Cron::notify qw(notify_flat_delay);
-notify_flat_delay(%opt);
+#what to do about the below when using -m? that is the question.
-use FS::Cron::vacuum qw(vacuum);
-vacuum();
+unless ( $opt{k} ) {
+
+ use FS::Cron::notify qw(notify_flat_delay);
+ notify_flat_delay(%opt);
+
+ use FS::Cron::vacuum qw(vacuum);
+ vacuum();
+}
+
+#you can skip this just by not having the config
use FS::Cron::backup qw(backup_scp);
backup_scp();
@@ -37,7 +44,7 @@
}
sub usage {
- die "Usage:\n\n freeside-daily [ -d 'date' ] user [ custnum custnum ... ]\n";
+ die "Usage:\n\n freeside-daily [ -d 'date' ] [ -y days ] [ -p 'payby' ] [ -a agentnum ] [ -s ] [ -v ] [ -l level ] [ -m ] [ -k ] user [ custnum custnum ... ]\n";
}
###
@@ -50,7 +57,7 @@
=head1 SYNOPSIS
- freeside-daily [ -d 'date' ] [ -y days ] [ -p 'payby' ] [ -a agentnum ] [ -s ] [ -v ] user [ custnum custnum ... ]
+ freeside-daily [ -d 'date' ] [ -y days ] [ -p 'payby' ] [ -a agentnum ] [ -s ] [ -v ] [ -l level ] [ -m ] [ -k ] user [ custnum custnum ... ]
=head1 DESCRIPTION
@@ -80,6 +87,12 @@
-v: enable debugging
+ -l: debugging level
+
+ -m: Experimental multi-process mode uses the job queue for multi-process and/or multi-machine billing.
+
+ -k: skip notify_flat_delay and vacuum
+
user: From the mapsecrets file - see config.html from the base documentation
custnum: if one or more customer numbers are specified, only bills those
More information about the freeside-commits
mailing list