]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/collectd
2 # Begin $rc_base/init.d/collecd
10 boot_mesg
"Starting Collection daemon..."
11 /usr
/sbin
/collectd
-C /etc
/collectd.conf
14 # These lines are for furhter implementation of the collectd, atm the temps are
15 # collected by the makegraphs script because of the standby functions
17 # for disk in `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; do boot_mesg "Bringing up hddtemp daemon for $disk ..."; /usr/sbin/hddtemp $disk -d -l localhost; evaluate_retval; done
19 # Starting the mbmon in deamon mode to enable sensors reading for collectd
20 # later mbmon will be replaced by lmsensors, if mbmon is not running on your
21 # system, we advise to comment out these lines in order to prevent fail
23 boot_mesg
"Bringing up mbmon daemon..."
24 /usr
/bin
/mbmon
-P 411 -r
29 # if mbmon is not running on your system, we advise to comment out these lines
30 # in order to prevent fail
31 boot_mesg
"Stopping mbmon daemon..."
32 killproc
/usr
/bin
/mbmon
34 # boot_mesg "Stopping hddtemp daemon..."
35 # killproc /usr/sbin/hddtemp
37 boot_mesg
"Stopping Collection daemon..."
38 killproc
/usr
/sbin
/collectd
45 # We need to do this that way because mbmon doesn`t clear the port when killed
46 # so the next startup it fails with port allready in use -> donĀ“t restart mbmon
48 boot_mesg
"Stopping Collection daemon..."
49 killproc
/usr
/sbin
/collectd
52 boot_mesg
"Starting Collection daemon..."
53 /usr
/sbin
/collectd
-C /etc
/collectd.conf
58 statusproc
/usr
/sbin
/collectd
62 echo "Usage: $0 {start|stop|restart|status}"
67 # End $rc_base/init.d/collectd