diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-21 03:39:29 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-21 03:39:29 +0100 |
commit | d1d4c88c33cb2170f26b27b8d34e2280a7b532ff (patch) | |
tree | 75875fdb0de7253bee7cf6f488101eea76581204 /script/alert-tracks | |
parent | 3b29b7c3f65e0c3153fbed0d27f864aaf624a36d (diff) |
Add an option to make alert_tracks run continually, rather than just processing whichever alerts are due right now.
Diffstat (limited to 'script/alert-tracks')
-rwxr-xr-x | script/alert-tracks | 8 |
1 files changed, 6 insertions, 2 deletions
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 |