From d1d4c88c33cb2170f26b27b8d34e2280a7b532ff Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Tue, 21 Jun 2011 03:39:29 +0100 Subject: Add an option to make alert_tracks run continually, rather than just processing whichever alerts are due right now. --- script/alert-tracks | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'script/alert-tracks') diff --git a/script/alert-tracks b/script/alert-tracks index 056a88078..117f7a406 100755 --- a/script/alert-tracks +++ b/script/alert-tracks @@ -2,6 +2,10 @@ LOC=`dirname $0` -$LOC/runner 'TrackMailer.alert_tracks' - +if [ "$1" == "--loop" ] +then + "$LOC/runner" 'TrackMailer.alert_tracks_loop' +else + "$LOC/runner" 'TrackMailer.alert_tracks' +fi -- cgit v1.2.3