#!/bin/sh
#
# $FreeBSD: ports/net-mgmt/net-snmp4/files/snmpd.in,v 1.3 2010/02/13 06:19:40 pgollucci Exp $
#
# PROVIDE: snmpd
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to enable this service:
#
# snmpd_enable (bool):	Set to NO by default. Set it to YES to enable snmpd.
#

. /etc/rc.subr

name=snmpd
rcvar=`set_rcvar`

command=/usr/local/sbin/${name}
pidfile=/var/run/${name}.pid

load_rc_config ${name}

: ${snmpd_enable="NO"}
: ${snmpd_flags="-P /var/run/${name}.pid"}

run_rc_command "$1"
