]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Change collectd backup period to one a day
authorManiacikarus <maniacikarus@ipfire.org>
Wed, 1 Oct 2008 13:31:59 +0000 (15:31 +0200)
committerManiacikarus <maniacikarus@ipfire.org>
Wed, 1 Oct 2008 13:31:59 +0000 (15:31 +0200)
Changed hddshutdown to half an hour

config/cron/crontab
config/rootfiles/updater/update.sh

index 004369b1a955cdcbf13801e184bc2de5a05ea824..2d7552bedb789ace250c1f6dad3f3d4a1622861d 100644 (file)
@@ -22,7 +22,7 @@ HOME=/
 
 # Make some nice graphs
 */5 * * * *    /usr/local/bin/makegraphs >/dev/null
-01 * * * *     /etc/init.d/collectd backup >/dev/null
+* 05 * * *     /etc/init.d/collectd backup >/dev/null
 
 # Force update the dynamic dns registration once a week
 # Force update even if IP has not changed once a month if 'minimize update' selected in GUI
@@ -37,7 +37,7 @@ HOME=/
                find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'
 
 # hddshutdown
-02 * * * *     /usr/local/bin/hddshutdown >/dev/null
+*/30 * * * *   /usr/local/bin/hddshutdown >/dev/null
 
 # connection-scheduler
 */5 * * * *    /usr/local/bin/connscheduler timer > /dev/null
index 18593dcde80298aa688cd0a86ed5271da1b02f30..582a5989088b9074d0249fe5761dcb5057ab5d09 100755 (executable)
@@ -171,9 +171,11 @@ echo \\n running on \\s \\r \\m >> /etc/issue
 #
 # Update crontab
 #
-grep -v "ipacsum" /var/spool/cron/root.orig > /tmp/root.orig.tmp
+grep -v "ipacsum" /var/spool/cron/root.orig | grep -v "hddshutdown" > /tmp/root.orig.tmp
 echo "# Backup collectd files" >> /tmp/root.orig.tmp
-echo "01 * * * *       /etc/init.d/collectd backup >/dev/null" >> /tmp/root.orig.tmp
+echo "* 05 * * *       /etc/init.d/collectd backup >/dev/null" >> /tmp/root.orig.tmp
+echo "# hddshutdown" >> /tmp/root.orig.tmp
+echo "*/30 * * * *     /usr/local/bin/hddshutdown >/dev/null" >> /tmp/root.orig.tmp
 mv /tmp/root.orig.tmp /var/spool/cron/root.orig
 chmod 600 /var/spool/cron/root.orig
 chown root:cron /var/spool/cron/root.orig