#!/bin/sh # # $FreeBSD$ # # 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. # . %%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"