From: kn Date: Wed, 30 Nov 2022 02:54:15 +0000 (+0000) Subject: add configtest; OK martijn X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1fae1118a3567b295eba9cc1c8d865a1e85ba667;p=openbsd add configtest; OK martijn --- 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