+ # 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
+ check
+ fi
+
+ if [ "$PLC_DNS_ENABLED" = "1" ] ; then
+ echo "*/15 * * * * root dns-config" >>/etc/cron.d/plc.cron
+ dns-config
+ check
+ fi
+
+ if [ "$PLC_DB_ENABLED" = "1" ] ; then
+ echo "5 5 * * * root vacuumdb -U postgres --all --analyze --quiet" >>/etc/cron.d/plc.cron
+ vacuumdb -U postgres --all --analyze --quiet
+ check
+ fi