summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/rrd_stats/rrd_stats.install
diff options
context:
space:
mode:
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