aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-06-13 10:14:30 +0000
committerfrancis <francis>2008-06-13 10:14:30 +0000
commit5bd4408352047547954fa22dd03cc0da07e8823a (patch)
treee16c61f51dedfc3a66139d3bb76a2d72a4ff4a7b
parenta416409c8d234719ef5b21d6c6defc4fbca34a9f (diff)
Restart mongrel after reboot
-rw-r--r--config/crontab.ugly5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/crontab.ugly b/config/crontab.ugly
index 1384e8a27..8f4e96729 100644
--- a/config/crontab.ugly
+++ b/config/crontab.ugly
@@ -4,11 +4,14 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org. WWW: http://www.mysociety.org/
#
-# $Id: crontab.ugly,v 1.13 2008-06-12 14:17:31 francis Exp $
+# $Id: crontab.ugly,v 1.14 2008-06-13 10:14:30 francis Exp $
PATH=/usr/local/bin:/usr/bin:/bin
MAILTO=team@whatdotheyknow.com
+# Start mongrel after reboot
+@reboot /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/restart-mongrel
+
# Every 10 minutes
*/10 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/update-xapian-index.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/update-xapian-index || echo "stalled?"
5,15,25,35,45,55 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/alert-tracks.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/alert-tracks || echo "stalled?"