From 522028d30f48dba1629e4936f20f6dee4b8fa22d Mon Sep 17 00:00:00 2001 From: kn Date: Fri, 14 Oct 2022 11:02:43 +0000 Subject: [PATCH] add configtest OK florian --- etc/rc.d/smtpd | 7 ++++++- etc/rc.d/unwind | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/smtpd b/etc/rc.d/smtpd index d7a4ae0dbfe..d58385cb3e9 100644 --- a/etc/rc.d/smtpd +++ b/etc/rc.d/smtpd @@ -1,11 +1,16 @@ #!/bin/ksh # -# $OpenBSD: smtpd,v 1.7 2018/01/11 19:52:12 rpe Exp $ +# $OpenBSD: smtpd,v 1.8 2022/10/14 11:02:43 kn Exp $ daemon="/usr/sbin/smtpd" . /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 diff --git a/etc/rc.d/unwind b/etc/rc.d/unwind index 4de08a712e2..6acd5c19001 100644 --- a/etc/rc.d/unwind +++ b/etc/rc.d/unwind @@ -1,9 +1,14 @@ #!/bin/ksh # -# $OpenBSD: unwind,v 1.2 2019/02/07 17:54:01 florian Exp $ +# $OpenBSD: unwind,v 1.3 2022/10/14 11:02:43 kn Exp $ daemon="/sbin/unwind" . /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_cmd $1 -- 2.20.1