3 # collectd Startup script for the Collectd statistics gathering daemon
5 # description: Collectd is a statistics gathering daemon used to collect \
6 # system information ie. cpu, memory, disk, network
7 # processname: collectd
8 # config: /etc/collectd.conf
9 # config: /etc/sysconfig/collectd
10 # pidfile: /var/run/collectd.pid
12 # Source function library.
13 . /etc/init.d/functions
18 CONFIG=/etc/collectd.conf
19 COLLECTD=/usr/sbin/collectd
20 COLLECTDMONPID=/var/run/collectdmon.pid
22 if [ -r /etc/default/$prog ]; then
27 echo -n $"Starting collectd: "
30 daemon $prog -P $COLLECTDMONPID -c $COLLECTD -- -C "$CONFIG"
33 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
37 echo -n $"Stopping collectd: "
41 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
43 # See how we were called.
59 [ -f /var/lock/subsys/$prog ] && restart || :
62 echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"