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
20 if [ -r /etc/default/$prog ]; then
25 echo -n $"Starting $prog: "
28 daemon /usr/sbin/collectd -C "$CONFIG"
31 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
35 echo -n $"Stopping $prog: "
39 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
41 # See how we were called.
57 [ -f /var/lock/subsys/$prog ] && restart || :
60 echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"