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