summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2013-08-19 05:12:38 +0000
committerpeter <peter@FreeBSD.org>2013-08-19 05:12:38 +0000
commitd7ac7dd6dc3d453db355a2c23a9928b259309eb6 (patch)
treeaa608ccd92bef90f509ed6b4953ac51ec4e02f3a /etc/rc.d
parent155c20d90c98c13d8b2bf8a6fd0843a3eb575789 (diff)
downloadFreeBSD-src-d7ac7dd6dc3d453db355a2c23a9928b259309eb6.zip
FreeBSD-src-d7ac7dd6dc3d453db355a2c23a9928b259309eb6.tar.gz
Revert r254508.
Diffstat (limited to 'etc/rc.d')
-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