have freeside-monthly take and pass a -m flag so it can tell the upload to wait for...
authorIvan Kohler <ivan@freeside.biz>
Sat, 1 Dec 2012 03:36:47 +0000 (19:36 -0800)
committerIvan Kohler <ivan@freeside.biz>
Sat, 1 Dec 2012 03:36:47 +0000 (19:36 -0800)
FS/bin/freeside-monthly

index 0d6ea14..69502a0 100755 (executable)
@@ -7,7 +7,7 @@ use FS::UID qw(adminsuidsetup);
 &untaint_argv; #what it sounds like  (eww)
 #use vars qw($opt_d $opt_v $opt_p $opt_a $opt_s $opt_y);
 use vars qw(%opt);
-getopts("p:a:d:vsy:", \%opt);
+getopts("p:a:d:vsy:m", \%opt);
 
 my $user = shift or die &usage;
 adminsuidsetup $user;
@@ -72,6 +72,8 @@ the bill and collect methods of a cust_main object.  See L<FS::cust_main>.
 
   -v: enable debugging
 
+  -m: Experimental multi-process mode (delay upload jobs until billing jobs complete)
+
 user: From the mapsecrets file - see config.html from the base documentation
 
 custnum: if one or more customer numbers are specified, only bills those