X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fcrond;h=64fa7afe7940e79f20a5740a547c107cdf577768;hb=e95b486c21d0902d8c84105eec4d1441ff04c46d;hp=67cfb3f4d2d8e735de26271713a6c5417f6c1558;hpb=f872afaa7976264819814d3e3289e020c0f77eae;p=myplc.git diff --git a/plc.d/crond b/plc.d/crond index 67cfb3f..64fa7af 100755 --- a/plc.d/crond +++ b/plc.d/crond @@ -7,11 +7,18 @@ # Mark Huang # 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.5 2006/06/23 20:29:22 mlhuang Exp $ # # Source function library and configuration . /etc/plc.d/functions +. /etc/planetlab/plc_config + +# Be verbose +set -x + +# Export so that we do not have to specify -p to psql invocations +export PGPORT=$PLC_DB_PORT case "$1" in start) @@ -33,6 +40,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 +51,10 @@ EOF check gen-static-content.py check + dns-config + check + vacuumdb -U postgres --all --analyze --quiet + check plc_daemon crond check