diff options
-rwxr-xr-x | bin/send-reports | 4 | ||||
-rw-r--r-- | conf/crontab.ugly | 18 |
2 files changed, 20 insertions, 2 deletions
diff --git a/bin/send-reports b/bin/send-reports index 17ec5692c..8db6595a4 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -1,12 +1,12 @@ #!/usr/bin/perl -w # send-reports: -# Send new problem reports to councils (and email updates on problems?) +# Send new problem reports to councils # # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: send-reports,v 1.2 2007-01-26 01:01:22 matthew Exp $ +# $Id: send-reports,v 1.3 2007-02-02 11:40:02 matthew Exp $ use strict; require 5.8.0; diff --git a/conf/crontab.ugly b/conf/crontab.ugly new file mode 100644 index 000000000..cbe6b22a9 --- /dev/null +++ b/conf/crontab.ugly @@ -0,0 +1,18 @@ +# crontab.ugly: +# Timed tasks for Nrighbourhood Fix-It. Template file. +# +# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. +# Email: matthew@mysociety.org. WWW: http://www.mysociety.org/ +# +# $Id: crontab.ugly,v 1.1 2007-02-02 11:40:02 matthew Exp $ + +PATH=/usr/local/bin:/usr/bin:/bin +!!(* if ($vhost eq "matthew.bci.mysociety.org") { *)!! +MAILTO=matthew@mysociety.org +!!(* } else {*)!! +MAILTO=team@neighbourhoodfixit.com +!!(* } *)!! + +0-59/5 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-reports.lock /data/vhost/!!(*= $vhost *)!!/mysociety/bci/bin/send-reports || echo "stalled?" +2 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-alerts.lock /data/vhost/!!(*= $vhost *)!!/mysociety/bci/bin/send-alerts || echo "stalled?" + |