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
19 CONFIG=/etc/collectd.conf
20 COLLECTD=/usr/sbin/collectd
21 COLLECTDMONPID=/var/run/collectdmon.pid
23 if [ -r /etc/default/$prog ]; then
28 echo -n $"Starting collectd: "
31 daemon $prog -P $COLLECTDMONPID -c $COLLECTD -- -C "$CONFIG"
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$service
38 echo -n $"Stopping collectd: "
42 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$service
44 # See how we were called.
60 [ -f /var/lock/subsys/$prog ] && restart || :
63 echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"