summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-10-14 11:02:44 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-10-14 11:02:44 +0000
commite2b70d63cf0a99d66e81078c8c87d0a49a0f6cb9 (patch)
tree4cd6a3f9660f1f8cc11102d0f080932332e1c516 /etc
parentf0476eadbd4e28c49507fa1d418eac0839b63211 (diff)
add configtest
OK florian
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/smtpd7
-rw-r--r--etc/rc.d/unwind7
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