summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/rrd_stats/rrd_stats.install
blob: be3d2e94e4bc57fa91e175206d7311c410c4966f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 - 

}