freebsd-dev/etc/rc.d/bsnmpd
Peter Wemm 030ee53fa1 Pass pidfile to bsnmpd if it's been changed (parts cut/pasted from
rc.d/rarpd and rc.d/wpa_supplicant)
2013-08-19 05:37:49 +00:00

20 lines
302 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: bsnmpd
# REQUIRE: NETWORKING syslogd
# KEYWORD: nojail shutdown
. /etc/rc.subr
name="bsnmpd"
rcvar="bsnmpd_enable"
command="/usr/sbin/${name}"
load_rc_config $name
pidfile="${bsnmpd_pidfile:-/var/run/snmpd.pid}"
command_args="-p ${pidfile}"
run_rc_command "$1"