From: erickson Date: Mon, 11 Oct 2010 14:02:20 +0000 (+0000) Subject: wait to run-pending if a specific granularity used X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c54e31c9ed2c0bee1206e74df756bfbcddc9511e;p=contrib%2FConifer.git wait to run-pending if a specific granularity used git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18257 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/support-scripts/action_trigger_runner.pl b/Open-ILS/src/support-scripts/action_trigger_runner.pl index eaddd45fb1..59e981a77f 100755 --- a/Open-ILS/src/support-scripts/action_trigger_runner.pl +++ b/Open-ILS/src/support-scripts/action_trigger_runner.pl @@ -211,7 +211,7 @@ help() and exit unless ($opt_run_pending or $opt_process_hooks); # check the lockfile if (-e $opt_lockfile) { - die "I'm already running with lockfile $opt_lockfile\n" if (!$opt_process_hooks); + die "I'm already running with lockfile $opt_lockfile\n" unless ($opt_process_hooks or $opt_granularity); # sleeping loop if we're in --process-hooks mode while ($max_sleep >= 0 && sleep(1)) { last unless ( -e $opt_lockfile );