git://git.onelab.eu
/
myplc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added --full option to vacuumdb
[myplc.git]
/
plc.d
/
crond
diff --git
a/plc.d/crond
b/plc.d/crond
index
39cc1e5
..
c4275c8
100755
(executable)
--- a/
plc.d/crond
+++ b/
plc.d/crond
@@
-7,7
+7,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id
: crond,v 1.8 2007/01/26 05:54:35 mlhuang Exp
$
+# $Id$
#
# Source function library and configuration
#
# Source function library and configuration
@@
-36,25
+36,15
@@
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=$MAILTO
HOME=/
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
# 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
- gen-slices-xml-05.py
- check
- gen-sites-xml.py
- check
- fi
-
if [ "$PLC_WWW_ENABLED" = "1" ] ; then
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
echo "00 * * * * wget -O - -q http://localhost/cron.php" >>/etc/cron.d/plc.cron
- gen-static-content.py
+ wget -O - -q http://localhost/cron.php
check
fi
check
fi
@@
-65,11
+55,17
@@
EOF
fi
if [ "$PLC_DB_ENABLED" = "1" ] ; then
fi
if [ "$PLC_DB_ENABLED" = "1" ] ; then
- echo "5 5 * * * root vacuumdb -U postgres --all --analyze --quiet" >>/etc/cron.d/plc.cron
+ echo "5 5 * * * root vacuumdb -U postgres --all --analyze --quiet
--full
" >>/etc/cron.d/plc.cron
vacuumdb -U postgres --all --analyze --quiet
check
fi
vacuumdb -U postgres --all --analyze --quiet
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
plc_daemon crond
check