diff --git a/etc/rc.d/dhcpleased b/etc/rc.d/dhcpleased index f81613db4a6..03c025c9bc5 100644 --- a/etc/rc.d/dhcpleased +++ b/etc/rc.d/dhcpleased @@ -1,11 +1,16 @@ #!/bin/ksh # -# $OpenBSD: dhcpleased,v 1.1 2021/02/26 17:18:41 florian Exp $ +# $OpenBSD: dhcpleased,v 1.2 2022/10/14 10:41:43 kn Exp $ daemon="/sbin/dhcpleased" . /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/rad b/etc/rc.d/rad index aa3fa1db2fd..170141ddbf8 100644 --- a/etc/rc.d/rad +++ b/etc/rc.d/rad @@ -1,9 +1,14 @@ #!/bin/ksh # -# $OpenBSD: rad,v 1.1 2018/07/12 08:20:36 florian Exp $ +# $OpenBSD: rad,v 1.2 2022/10/14 10:41:43 kn Exp $ daemon="/usr/sbin/rad" . /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