- bootstrap Drupal DB
[myplc.git] / plc.d / crond
index 67cfb3f..34f371c 100755 (executable)
@@ -7,11 +7,15 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: crond,v 1.4 2006/05/26 19:57:30 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
+
+# Be verbose
+set -x
 
 case "$1" in
     start)
@@ -33,6 +37,8 @@ HOME=/
 */5 * * * * root gen-slices-xml-05.py
 */15 * * * * root gen-sites-xml.py
 */15 * * * * root gen-static-content.py
+*/15 * * * * root dns-config
+5 5 * * * root vacuumdb -U postgres --all --analyze --quiet
 EOF
 
         # Run them once at startup
@@ -42,6 +48,10 @@ EOF
        check
        gen-static-content.py
        check
+       dns-config
+       check
+       vacuumdb -U postgres --all --analyze --quiet
+       check
 
        plc_daemon crond
        check