5 # Required-Start: $local_fs $remote_fs $network
6 # X-UnitedLinux-Should-Start: $named $time apache mysql
7 # Required-Stop: $local_fs $remote_fs $network
8 # X-UnitedLinux-Should-Stop:
10 # Default-Stop: 0 1 2 6
11 # Short-Description: Statistics daemon collectd
12 # Description: Start the statistics daemon collectd
17 # load the configuration
19 test -s /etc/rc.status && . /etc/rc.status && rc_reset
24 CONFIG=/etc/collectd.conf
26 if [ -r /etc/default/$prog ]; then
31 echo -n $"Starting $prog: "
35 eval startproc /usr/sbin/collectd -C "$CONFIG"
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
43 echo -n $"Stopping $prog: "
48 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
50 # See how we were called.
67 [ -f /var/lock/subsys/$prog ] && restart || :
70 echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"