summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/rrd_stats/rrd_stats.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-15 05:03:27 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-15 05:03:27 (GMT)
commitb760ec370e5f2265ee619e394d44b7fd8b3e2346 (patch)
treecee4f10f2f9f454cdd13cbda4c240ebc49df1885 /abs/extra-testing/rrd_stats/rrd_stats.install
parent20a5899db76084e118e8ec9f990dc58d1c467718 (diff)
downloadlinhes_pkgbuild-b760ec370e5f2265ee619e394d44b7fd8b3e2346.zip
linhes_pkgbuild-b760ec370e5f2265ee619e394d44b7fd8b3e2346.tar.gz
linhes_pkgbuild-b760ec370e5f2265ee619e394d44b7fd8b3e2346.tar.bz2
rrd_stats: add to repo
ref FS#146
Diffstat (limited to 'abs/extra-testing/rrd_stats/rrd_stats.install')
-rw-r--r--abs/extra-testing/rrd_stats/rrd_stats.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/extra-testing/rrd_stats/rrd_stats.install b/abs/extra-testing/rrd_stats/rrd_stats.install
new file mode 100644
index 0000000..be3d2e9
--- /dev/null
+++ b/abs/extra-testing/rrd_stats/rrd_stats.install
@@ -0,0 +1,22 @@
+post_install() {
+ line="*/5 * * * * /usr/local/bin/rrd_hddtemp.pl > /dev/null"
+ (crontab -l; echo "$line") | crontab -
+ line="*/5 * * * * /usr/local/bin/rrd_disk.pl > /dev/null"
+ (crontab -l; echo "$line") | crontab -
+ line="*/5 * * * * /usr/local/bin/rrd_traffic.pl > /dev/null"
+ (crontab -l; echo "$line") | crontab -
+ line="*/5 * * * * /usr/local/bin/rrd_mem.pl > /dev/null"
+ (crontab -l; echo "$line") | crontab -
+ line="*/5 * * * * /usr/local/bin/rrd_cpu.pl > /dev/null"
+ (crontab -l; echo "$line") | crontab -
+}
+
+post_upgrade() {
+ /bin/true
+}
+
+
+pre_remove() {
+ crontab -l | grep -v rrd_ | crontab -
+
+}