aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2014-03-07 11:44:34 +0000
committerMark Longair <mhl@pobox.com>2014-03-07 11:45:59 +0000
commitcf670b4ce92d198559487c45efd9629c393f2dcd (patch)
tree5049d63cbc395336e5255ef2c3d7656274a97927
parent94f2a8f4d34f49db0191faa0b048291efd4a4f89 (diff)
Use different variables in the crontab file to help the install script
Using '!!(*= $vhost_dir *)!!' instead of '/data/vhost/!!(*= $vhost *)!!' makes it easier for the install script to rewrite the crontab for systems that keep web host data in directories other that /data/vhost (e.g. /var/www is common). This is similar change to 20e447e7356ac0387. Fixes #1376
-rw-r--r--config/crontab-example2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/crontab-example b/config/crontab-example
index 64d0c45c9..8fe13151b 100644
--- a/config/crontab-example
+++ b/config/crontab-example
@@ -12,7 +12,7 @@ MAILTO=cron-!!(*= $site *)!!@mysociety.org
# Every 10 minutes
5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/foi-alert-tracks check
5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/foi-purge-varnish check
-0,10,20,30,40,50 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-batch-requests.lock /data/vhost/!!(*= $vhost *)!!/!!(*= $vcspath *)!!/script/send-batch-requests || echo "stalled?"
+0,10,20,30,40,50 * * * * !!(*= $user *)!! run-with-lockfile -n !!(*= $vhost_dir *)!!/send-batch-requests.lock !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/script/send-batch-requests || echo "stalled?"
# Once an hour
09 * * * * !!(*= $user *)!! run-with-lockfile -n !!(*= $vhost_dir *)!!/alert-comment-on-request.lock !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/script/alert-comment-on-request || echo "stalled?"