1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00

add configtest

OK florian
This commit is contained in:
kn 2022-10-14 10:41:43 +00:00
parent 21af0d4a4a
commit 35f07ed73d
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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