From 35f07ed73d5375b872f6c5ad116cb38a3eb4145f Mon Sep 17 00:00:00 2001 From: kn Date: Fri, 14 Oct 2022 10:41:43 +0000 Subject: [PATCH] add configtest OK florian --- etc/rc.d/dhcpleased | 7 ++++++- etc/rc.d/rad | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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 -- 2.20.1