summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/rrd_stats/rrd_stats.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-18 14:58:31 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-18 14:58:31 (GMT)
commit06ba6de894ea5a79a85b2fd4ebbc1faf3eeaba36 (patch)
tree18b7c3dc77621b44e33be243e9701c5afc02e4fe /abs/extra-testing/rrd_stats/rrd_stats.install
parentbc2a5f737e0f0402b31ab0a5a59ee11a204f48c6 (diff)
downloadlinhes_pkgbuild-06ba6de894ea5a79a85b2fd4ebbc1faf3eeaba36.zip
linhes_pkgbuild-06ba6de894ea5a79a85b2fd4ebbc1faf3eeaba36.tar.gz
linhes_pkgbuild-06ba6de894ea5a79a85b2fd4ebbc1faf3eeaba36.tar.bz2
rrd_stats: add rrd_ups. Also add run_rrd.sh to cron. There were enough rrd scripts that cron was getting a bit messy.
People who installed earlier rrd_stats will need to cleanup their crontab manually.
Diffstat (limited to 'abs/extra-testing/rrd_stats/rrd_stats.install')
-rw-r--r--abs/extra-testing/rrd_stats/rrd_stats.install41
1 files changed, 3 insertions, 38 deletions
diff --git a/abs/extra-testing/rrd_stats/rrd_stats.install b/abs/extra-testing/rrd_stats/rrd_stats.install
index e63b0eb..126e4f0 100644
--- a/abs/extra-testing/rrd_stats/rrd_stats.install
+++ b/abs/extra-testing/rrd_stats/rrd_stats.install
@@ -7,45 +7,10 @@ post_install() {
fi
ct=`crontab -l`
- echo $ct | grep -q rrd_hddtemp.pl
+ echo $ct | grep -q run_rrd.sh
if [ $? != 0 ]
then
- line="*/5 * * * * /usr/bin/rrd_hddtemp.pl > /dev/null"
- (crontab -l; echo "$line") | crontab -
- fi
-
- echo $ct | grep -q rrd_disk.pl
- if [ $? != 0 ]
- then
- line="*/5 * * * * /usr/bin/rrd_disk.pl > /dev/null"
- (crontab -l; echo "$line") | crontab -
- fi
-
- echo $ct | grep -q rrd_traffic.pl
- if [ $? != 0 ]
- then
- line="*/5 * * * * /usr/bin/rrd_traffic.pl > /dev/null"
- (crontab -l; echo "$line") | crontab -
- fi
-
- echo $ct | grep -q rrd_mem.pl
- if [ $? != 0 ]
- then
- line="*/5 * * * * /usr/bin/rrd_mem.pl > /dev/null"
- (crontab -l; echo "$line") | crontab -
- fi
-
- echo $ct | grep -q rrd_cpu.pl
- if [ $? != 0 ]
- then
- line="*/5 * * * * /usr/bin/rrd_cpu.pl > /dev/null"
- (crontab -l; echo "$line") | crontab -
- fi
-
- echo $ct | grep -q rrd_usage.pl
- if [ $? != 0 ]
- then
- line="*/5 * * * * /usr/bin/rrd_usage.pl > /dev/null"
+ line="*/5 * * * * /usr/bin/run_rrd.sh > /dev/null"
(crontab -l; echo "$line") | crontab -
fi
@@ -58,7 +23,7 @@ post_upgrade() {
pre_remove() {
- crontab -l | grep -v rrd_ | crontab -
+ crontab -l | grep -v run_rrd | crontab -
PFIX="/data/srv/httpd/htdocs/rrd"
if [ -e $PFIX/index.html.orig ]
then