summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/bsnmpd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/bsnmpd')
-rwxr-xr-xetc/rc.d/bsnmpd3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.d/bsnmpd b/etc/rc.d/bsnmpd
index 2aad72e..7700b39 100755
--- a/etc/rc.d/bsnmpd
+++ b/etc/rc.d/bsnmpd
@@ -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"
OpenPOWER on IntegriCloud