Two more, then all daemons in my accumulated `rcctl ls on' output should
be covered.
OK?
Index: smtpd
===================================================================
RCS file: /cvs/src/etc/rc.d/smtpd,v
retrieving revision 1.7
diff -u -p -r1.7 smtpd
--- smtpd 11 Jan 2018 19:52:12 -0000 1.7
+++ smtpd 14 Oct 2022 10:47:19 -0000
@@ -6,6 +6,11 @@ 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
Index: unwind
===================================================================
RCS file: /cvs/src/etc/rc.d/unwind,v
retrieving revision 1.2
diff -u -p -r1.2 unwind
--- unwind 7 Feb 2019 17:54:01 -0000 1.2
+++ unwind 14 Oct 2022 10:48:03 -0000
@@ -6,4 +6,9 @@ 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