X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fcrond;h=024615cd57066c5831377ec454b72ac428aec8a5;hb=66d6edbf82663919bd2de17dea73dbba8ee6b872;hp=7751577665a944b12e4ee63b410c7e983de7eff7;hpb=feabe171befb088e618f59cdf0b853a356613460;p=myplc.git diff --git a/plc.d/crond b/plc.d/crond index 7751577..024615c 100755 --- a/plc.d/crond +++ b/plc.d/crond @@ -7,7 +7,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: crond,v 1.6 2006/12/12 22:23:04 mlhuang Exp $ +# $Id$ # # Source function library and configuration @@ -36,24 +36,15 @@ SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=$MAILTO HOME=/ - +# # minute hour day-of-month month day-of-week user command EOF # Run all jobs once at startup - if [ "$PLC_BOOT_ENABLED" = "1" ] ; then - echo "*/5 * * * * root gen-slices-xml-05.py" >>/etc/cron.d/plc.cron - echo "*/15 * * * * root gen-sites-xml.py" >>/etc/cron.d/plc.cron - gen-slices-xml-05.py - check - gen-sites-xml.py - check - fi - if [ "$PLC_WWW_ENABLED" = "1" ] ; then - echo "*/15 * * * * root gen-static-content.py" >>/etc/cron.d/plc.cron - gen-static-content.py + echo "00 * * * * wget -O - -q http://localhost/cron.php" >>/etc/cron.d/plc.cron + wget -O - -q http://localhost/cron.php check fi @@ -69,6 +60,12 @@ EOF check fi + if [ "$PLC_WWW_ENABLED" = "1" ] ; then + echo "*/15 * * * * root clean-empty-dirs.py /var/tmp/bootmedium" >> /etc/cron.d/plc.cron + clean-empty-dirs.py /var/tmp/bootmedium + check + fi + plc_daemon crond check