7 # Mark Huang <mlhuang@cs.princeton.edu>
8 # Copyright (C) 2006 The Trustees of Princeton University
10 # $Id: crond,v 1.3 2006/05/22 21:12:17 mlhuang Exp $
13 # Source function library and configuration
14 . /etc/plc.d/functions
15 . /etc/planetlab/plc_config
19 MESSAGE=$"Starting crond"
22 if [ "$PLC_MAIL_ENABLED" = "1" ] ; then
23 MAILTO=$PLC_MAIL_SUPPORT_ADDRESS
27 cat >/etc/cron.d/plc.cron <<EOF
29 PATH=/sbin:/bin:/usr/sbin:/usr/bin
33 # minute hour day-of-month month day-of-week user command
34 */5 * * * * root gen-slices-xml-05.py
35 */15 * * * * root gen-sites-xml.py
36 */15 * * * * root gen-static-content.py
37 */15 * * * * root dns-config
38 5 5 * * * root vacuumdb -U postgres --all --analyze --quiet
41 # Run them once at startup
50 vacuumdb -U postgres --all --analyze --quiet
60 MESSAGE=$"Stopping crond"