- generate sites.xml on www
authorMark Huang <mlhuang@cs.princeton.edu>
Wed, 7 Feb 2007 23:21:27 +0000 (23:21 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Wed, 7 Feb 2007 23:21:27 +0000 (23:21 +0000)
plc.d/crond

index 8ad9fdd..39cc1e5 100755 (executable)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: crond,v 1.7 2007/01/18 22:10:33 mlhuang Exp $
+# $Id: crond,v 1.8 2007/01/26 05:54:35 mlhuang Exp $
 #
 
 # Source function library and configuration
@@ -44,7 +44,6 @@ 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
@@ -53,6 +52,7 @@ EOF
 
        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