summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.d/bsnmpd12
1 files changed, 1 insertions, 11 deletions
diff --git a/etc/rc.d/bsnmpd b/etc/rc.d/bsnmpd
index 49d2d90..2aad72e 100755
--- a/etc/rc.d/bsnmpd
+++ b/etc/rc.d/bsnmpd
@@ -12,17 +12,7 @@
name="bsnmpd"
rcvar="bsnmpd_enable"
command="/usr/sbin/${name}"
-start_cmd="bsnmpd_start"
-
-bsnmpd_start()
-{
- rc_flags="-p ${pidfile} ${bsnmpd_flags}"
- echo -n "Starting bsnmpd"
- su -m $user -c "$command ${rc_flags}"
- echo "."
-}
+pidfile="/var/run/snmpd.pid"
load_rc_config $name
-user="${bsnmpd_username:-root}"
-pidfile="${bsnmpd_pidfile:-/var/run/snmpd.pid}"
run_rc_command "$1"
OpenPOWER on IntegriCloud