Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/bsnmpd
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: bsnmpd | # PROVIDE: bsnmpd | ||||
# REQUIRE: NETWORKING syslogd | # REQUIRE: NETWORKING syslogd | ||||
# KEYWORD: nojail shutdown | # KEYWORD: nojail shutdown | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="bsnmpd" | name="bsnmpd" | ||||
desc="Simple and extensible SNMP daemon" | |||||
rcvar="bsnmpd_enable" | rcvar="bsnmpd_enable" | ||||
command="/usr/sbin/${name}" | command="/usr/sbin/${name}" | ||||
load_rc_config $name | load_rc_config $name | ||||
pidfile="${bsnmpd_pidfile:-/var/run/snmpd.pid}" | pidfile="${bsnmpd_pidfile:-/var/run/snmpd.pid}" | ||||
command_args="-p ${pidfile}" | command_args="-p ${pidfile}" | ||||
run_rc_command "$1" | run_rc_command "$1" |