diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2013-12-10 16:45:43 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2013-12-10 16:45:43 +0000 |
commit | 59eb44959e9cb8ccd21e9be813e4d1c8baaa1dcc (patch) | |
tree | 808119cd58637dc2bb4b2507e3d0837cc3720058 /conf | |
parent | bfaa47a733f378a2cd0d0cb0e838e6234aa9e1aa (diff) |
Remove crontab.ugly
This is a mySociety internal deployment detail, and should be handled
elsewhere.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/crontab.ugly | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/conf/crontab.ugly b/conf/crontab.ugly deleted file mode 100644 index c85d3f119..000000000 --- a/conf/crontab.ugly +++ /dev/null @@ -1,83 +0,0 @@ -# crontab.ugly: -# Timed tasks for FixMyStreet. 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.23 2010-01-07 10:32:24 louise Exp $ - -PATH=/usr/local/bin:/usr/bin:/bin -!!(* if ($vhost eq 'www.fixmystreet.com' || $vhost eq 'reportemptyhomes.com') { *)!! -MAILTO=cron-!!(*= $site *)!!@mysociety.org -!!(* } else { *)!! -MAILTO=!!(*= $user *)!!@mysociety.org -!!(* } *)!! - -!!(* - -my @sending = qw( - www.fixmystreet.com - bromley.test.mysociety.org - stevenage.test.mysociety.org - barnet.fixmystreet.staging.mysociety.org - oxfordshire.fixmystreet.staging.mysociety.org - fixmybarangay.test.mysociety.org - demo.fixmybarangay.com - www.fixmybarangay.com - zurich.fixmystreet.staging.mysociety.org - www.zueriwieneu.ch - seesomething.mysociety.org -); -my @no_alerts = qw( - zurich.fixmystreet.staging.mysociety.org - www.zueriwieneu.ch - seesomething.mysociety.org -); -my @no_open311 = qw( - zurich.fixmystreet.staging.mysociety.org - www.zueriwieneu.ch - seesomething.mysociety.org -); -my %sending = map { $_ => 1 } @sending; -my %no_alerts = map { $_ => 1 } @no_alerts; - -*)!! - -!!(* if ($sending{$vhost}) { *)!! -# Sending of reports -5,10,15,20,25,30,35,40,45,50,55 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-reports.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper send-reports" || echo "stalled?" -0 0-7,9-11,13-15,17-23 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-reports.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper send-reports" || echo "stalled?" -0 8,12,16 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-reports.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper send-reports --verbose" || echo "stalled?" - -!!(* if (!$no_alerts{$vhost}) { *)!! -# Sending of alerts and questionnaires -2 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-alerts.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper send-alerts" || echo "stalled?" -0,30 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-questionnaires.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper send-questionnaires" || echo "stalled?" -!!(* } *)!! - -!!(* if (!$no_open311{$vhost}) { *)!! -# Open311 sending and fetching of updates -5,10,15,20,25,30,35,40,45,50,55 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-comments.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper send-comments" || echo "stalled?" -5,10,15,20,25,30,35,40,45,50,55 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/fetch-comments.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper fetch-comments" || echo "stalled?" -0 8 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/fetch-comments.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper fetch-comments --verbose" || echo "stalled?" -0 1 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/fetch-comments.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper fetch-comments-24hs" || echo "stalled?" - -# Open311 service list population -30 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/open311-populate-service-list.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper open311-populate-service-list" || echo "stalled?" -0 0-7,9-23 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/open311-populate-service-list.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper open311-populate-service-list" || echo "stalled?" -0 8 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/open311-populate-service-list.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper open311-populate-service-list --warn" || echo "stalled?" -!!(* } *)!! - -!!(* } *)!! - -# Once an hour, update the all reports stats -13 * * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper update-all-reports - -# Once a day on all servers -39 2 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/problems-filed-graph -43 2 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/problem-creation-graph -00 8 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/check-for-zombies !!(*= $user *)!! - -!!(* if ($vhost =~ /zurich|zueri/) { *)!! -30 0 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper zurich-overdue-alert -!!(* } *)!! |