exit 0
fi
+checkconfig() {
+ /usr/sbin/collectd -t || exit 1
+}
+
start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/collectd ]; then
condrestart() {
if [ -f /var/lock/subsys/collectd ]; then
+ checkconfig
stop
start
else
stop
;;
restart)
+ checkconfig
stop
start
;;
condrestart 7
;;
status)
+ checkconfig
status collectd
exit $?
;;