artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f38a8e3
)
add configtest; OK martijn
author
kn
<kn@openbsd.org>
Wed, 30 Nov 2022 02:54:15 +0000
(
02:54
+0000)
committer
kn
<kn@openbsd.org>
Wed, 30 Nov 2022 02:54:15 +0000
(
02:54
+0000)
etc/rc.d/snmpd
patch
|
blob
|
history
diff --git
a/etc/rc.d/snmpd
b/etc/rc.d/snmpd
index
6fe67be
..
115ddfa
100644
(file)
--- a/
etc/rc.d/snmpd
+++ b/
etc/rc.d/snmpd
@@
-1,11
+1,16
@@
#!/bin/ksh
#
-# $OpenBSD: snmpd,v 1.
4 2018/01/11 19:52:12 rpe
Exp $
+# $OpenBSD: snmpd,v 1.
5 2022/11/30 02:54:15 kn
Exp $
daemon="/usr/sbin/snmpd"
. /etc/rc.d/rc.subr
+rc_configtest() {
+ # use rc_exec here since daemon_flags may contain arguments with spaces
+ rc_exec "${daemon} -n ${daemon_flags}"
+}
+
rc_reload=NO
rc_cmd $1