From 1fae1118a3567b295eba9cc1c8d865a1e85ba667 Mon Sep 17 00:00:00 2001 From: kn Date: Wed, 30 Nov 2022 02:54:15 +0000 Subject: [PATCH] add configtest; OK martijn --- etc/rc.d/snmpd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/rc.d/snmpd b/etc/rc.d/snmpd index 6fe67bed2cf..115ddfab9f3 100644 --- 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 -- 2.20.1