From: kn Date: Fri, 14 Oct 2022 11:02:43 +0000 (+0000) Subject: add configtest X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=522028d30f48dba1629e4936f20f6dee4b8fa22d;p=openbsd add configtest OK florian --- 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