3 # collectd collectd (collectd daemon)
7 # description: utility that colect various system information \
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 [ -f /etc/sysconfig/collectd ] && . /etc/sysconfig/collectd
24 # Check if the service is already running?
25 if [ ! -f /var/lock/subsys/collectd ]; then
27 daemon /usr/sbin/collectd
29 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/collectd
31 msg_already_running collectd
35 if [ -f /var/lock/subsys/collectd ]; then
38 rm -f /var/lock/subsys/collectd >/dev/null 2>&1
40 msg_not_running collectd
53 msg_usage "$0 {start|stop|restart|status}"