- append site-specific access rules pg_hba.conf.d/*.conf to pg_hba.conf
[myplc.git] / plc.d / crond
index 7751577..0c58bd0 100755 (executable)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: crond,v 1.6 2006/12/12 22:23:04 mlhuang Exp $
+# $Id: crond,v 1.9 2007/02/07 23:21:27 mlhuang Exp $
 #
 
 # Source function library and configuration
@@ -44,17 +44,20 @@ EOF
 
        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
+           echo "*/15 * * * * root gen-sites-xml.py" >>/etc/cron.d/plc.cron
+           echo "00 * * * * wget -O - -q http://localhost/cron.php" >>/etc/cron.d/plc.cron
            gen-static-content.py
            check
+           gen-sites-xml.py
+           check
+           wget -O - -q http://localhost/cron.php
+           check
        fi
 
        if [ "$PLC_DNS_ENABLED" = "1" ] ; then