2005-04-17 10:47:58 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: bsnmpd
|
|
|
|
# REQUIRE: NETWORKING syslogd
|
2017-07-03 20:36:58 +00:00
|
|
|
# KEYWORD: nojailvnet shutdown
|
2005-04-17 10:47:58 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="bsnmpd"
|
2016-04-23 16:10:54 +00:00
|
|
|
desc="Simple and extensible SNMP daemon"
|
2012-01-14 02:18:41 +00:00
|
|
|
rcvar="bsnmpd_enable"
|
2005-04-17 10:47:58 +00:00
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
|
|
|
|
load_rc_config $name
|
2013-08-19 05:37:49 +00:00
|
|
|
pidfile="${bsnmpd_pidfile:-/var/run/snmpd.pid}"
|
|
|
|
command_args="-p ${pidfile}"
|
2005-04-17 10:47:58 +00:00
|
|
|
run_rc_command "$1"
|