diff options
Diffstat (limited to 'jobqueue.pl')
-rwxr-xr-x | jobqueue.pl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/jobqueue.pl b/jobqueue.pl index f5541e0fb..7a884b811 100755 --- a/jobqueue.pl +++ b/jobqueue.pl @@ -10,12 +10,13 @@ use 5.10.1; use strict; use warnings; -use File::Basename; -use File::Spec; +use File::Basename qw(dirname); +use File::Spec::Functions qw(catdir rel2abs); + BEGIN { require lib; - my $dir = File::Spec->rel2abs(dirname(__FILE__)); - lib->import($dir, File::Spec->catdir($dir, 'lib'), File::Spec->catdir($dir, qw(local lib perl5))); + my $dir = rel2abs( dirname(__FILE__) ); + lib->import( $dir, catdir( $dir, 'lib' ), catdir( $dir, qw(local lib perl5) ) ); chdir $dir or die "chdir $dir failed: $!"; } @@ -39,6 +40,8 @@ jobqueue.pl - Runs jobs in the background for Bugzilla. process id. Defaults to F<data/jobqueue.pl.pid>. -n name What should this process call itself in the system log? Defaults to the full path you used to invoke the script. + -j jobs How many child processes should be run? + Defaults to 1. COMMANDS: start Starts a new jobqueue daemon if there isn't one running already |