Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/bsnmpd
| #!/bin/sh | #!/bin/sh | ||||
| # | # | ||||
| # | # | ||||
| # PROVIDE: bsnmpd | # PROVIDE: bsnmpd | ||||
| # REQUIRE: NETWORKING syslogd | # REQUIRE: NETWORKING syslogd | ||||
| # KEYWORD: nojailvnet shutdown | # KEYWORD: nojailvnet shutdown | ||||
| . /etc/rc.subr | . /etc/rc.subr | ||||
| name="bsnmpd" | name="bsnmpd" | ||||
| desc="Simple and extensible SNMP daemon" | desc="Simple and extensible SNMP daemon" | ||||
| rcvar="bsnmpd_enable" | rcvar="bsnmpd_enable" | ||||
| command="/usr/sbin/${name}" | command="/usr/sbin/${name}" | ||||
| : ${bsnmpd_svcj_options:="net_basic"} | |||||
| 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" | ||||