Pass pidfile to bsnmpd if it's been changed (parts cut/pasted from

rc.d/rarpd and rc.d/wpa_supplicant)
This commit is contained in:
peter 2013-08-19 05:37:49 +00:00
parent d7ac7dd6dc
commit 088808bf23

View File

@ -12,7 +12,8 @@
name="bsnmpd"
rcvar="bsnmpd_enable"
command="/usr/sbin/${name}"
pidfile="/var/run/snmpd.pid"
load_rc_config $name
pidfile="${bsnmpd_pidfile:-/var/run/snmpd.pid}"
command_args="-p ${pidfile}"
run_rc_command "$1"