#!/bin/sh
#
# $NetBSD: collectd.sh,v 1.1 2014/02/17 11:21:55 fhajny Exp $
#
# PROVIDE: collectd 
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# You will need to set some variables in /etc/rc.conf to start collectd:
#
# collectd=YES
#

if [ -f /etc/rc.subr ]
then
    . /etc/rc.subr
fi

name="collectd"
rcvar=${name}
command=/usr/pkg/sbin/collectd
pidfile="/var/run/collectd.pid"
required_files=/usr/pkg/etc/collectd.conf

load_rc_config ${name}
run_rc_command "$1"
