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:
parent
8913b090d0
commit
030ee53fa1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254511
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user