summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--abs/extra-testing/rrd_stats/PKGBUILD2
-rw-r--r--abs/extra-testing/rrd_stats/rrd_stats.install41
-rw-r--r--abs/extra-testing/rrd_stats/rrd_stats.tgzbin6603 -> 7454 bytes
-rw-r--r--abs/extra-testing/rrd_stats/run_rrd.sh8
4 files changed, 12 insertions, 39 deletions
diff --git a/abs/extra-testing/rrd_stats/PKGBUILD b/abs/extra-testing/rrd_stats/PKGBUILD
index 9e52ee4..40f0536 100644
--- a/abs/extra-testing/rrd_stats/PKGBUILD
+++ b/abs/extra-testing/rrd_stats/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=rrd_stats
pkgver=1
-pkgrel=15
+pkgrel=16
pkgdesc="graph system stats"
arch=('i686' 'x86_64')
url=""
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
diff --git a/abs/extra-testing/rrd_stats/rrd_stats.tgz b/abs/extra-testing/rrd_stats/rrd_stats.tgz
index 7b28be3..c141ffa 100644
--- a/abs/extra-testing/rrd_stats/rrd_stats.tgz
+++ b/abs/extra-testing/rrd_stats/rrd_stats.tgz
Binary files differ
diff --git a/abs/extra-testing/rrd_stats/run_rrd.sh b/abs/extra-testing/rrd_stats/run_rrd.sh
new file mode 100644
index 0000000..19150a4
--- /dev/null
+++ b/abs/extra-testing/rrd_stats/run_rrd.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+RRD='hddtemp disk traffic mem cpu usage ups'
+DIR='/usr/bin'
+#
+for x in $RRD
+do
+ $DIR/rrd_${x}.pl >& /dev/null
+done