Use the -r flag in net-snmp's rc.d script, as figured out by
Theodore Wynnychenko. This tells it not to exit when it can't open /dev/kmem etc. Fixes startup now that this access is disabled by default in OpenBSD. Some MIBs won't work, but in general these should be rewritten to use sysctl interfaces.
This commit is contained in:
parent
8571914f14
commit
26816dc330
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.92 2016/08/17 20:58:19 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.93 2016/10/11 20:47:43 sthen Exp $
|
||||
|
||||
COMMENT-main= extendable SNMP implementation
|
||||
COMMENT-tkmib= graphical SNMP MIB browser
|
||||
|
||||
V= 5.7.3
|
||||
REVISION-main= 9
|
||||
REVISION-main= 10
|
||||
|
||||
DISTNAME= net-snmp-$V
|
||||
MULTI_PACKAGES= -main -tkmib
|
||||
|
@ -1,12 +1,10 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: netsnmpd.rc,v 1.3 2016/01/07 12:35:53 sthen Exp $
|
||||
# $OpenBSD: netsnmpd.rc,v 1.4 2016/10/11 20:47:43 sthen Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/snmpd"
|
||||
|
||||
# disable ipv6 mib which needs root; to override the default you may set
|
||||
# this in rc.conf.local: netsnmpd_flags=" "
|
||||
daemon_flags="-u _netsnmp -I -ipv6"
|
||||
daemon_flags="-u _netsnmp -r"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user