#!/bin/ksh
#
-# $OpenBSD: bgpd,v 1.6 2022/05/21 12:42:21 ajacoutot Exp $
+# $OpenBSD: bgpd,v 1.7 2022/08/29 19:14:25 ajacoutot Exp $
daemon="/usr/sbin/bgpd"
. /etc/rc.d/rc.subr
-# child will not return a config parsing error to the parent
-rc_pre() {
+rc_configtest() {
# use rc_exec here since daemon_flags may contain arguments with spaces
rc_exec "${daemon} -n ${daemon_flags}"
}
#!/bin/ksh
#
-# $OpenBSD: httpd,v 1.8 2022/05/21 12:42:21 ajacoutot Exp $
+# $OpenBSD: httpd,v 1.9 2022/08/29 19:14:25 ajacoutot Exp $
daemon="/usr/sbin/httpd"
. /etc/rc.d/rc.subr
-# child will not return a config parsing error to the parent
-rc_pre() {
+rc_configtest() {
# use rc_exec here since daemon_flags may contain arguments with spaces
rc_exec "${daemon} -n ${daemon_flags}"
}
#!/bin/ksh
#
-# $OpenBSD: iked,v 1.8 2022/05/21 12:42:21 ajacoutot Exp $
+# $OpenBSD: iked,v 1.9 2022/08/29 19:14:25 ajacoutot Exp $
daemon="/sbin/iked"
pexp="iked: parent.*"
-# Child will not return a config parsing error to the parent.
+rc_configtest() {
+ # use rc_exec here since daemon_flags may contain arguments with spaces
+ rc_exec "${daemon} -n ${daemon_flags}"
+}
rc_pre() {
[[ ${sasyncd_flags} != NO ]] &&
daemon_flags="-S ${daemon_flags}"
-
- # use rc_exec here since daemon_flags may contain arguments with spaces
- rc_exec "${daemon} -n ${daemon_flags}"
}
rc_cmd $1
#!/bin/ksh
#
-# $OpenBSD: nfsd,v 1.8 2018/01/11 21:09:26 rpe Exp $
+# $OpenBSD: nfsd,v 1.9 2022/08/29 19:14:25 ajacoutot Exp $
daemon="/sbin/nfsd"
daemon_flags="-tun 4"
. /etc/rc.d/rc.subr
pexp="(${daemon}( |$)|nfsd: (master|server)$)"
-
rc_reload=NO
rc_pre() {
#!/bin/ksh
#
-# $OpenBSD: relayd,v 1.7 2022/05/21 12:42:21 ajacoutot Exp $
+# $OpenBSD: relayd,v 1.8 2022/08/29 19:14:25 ajacoutot Exp $
daemon="/usr/sbin/relayd"
. /etc/rc.d/rc.subr
-# Child will not return a config parsing error to the parent.
-rc_pre() {
+rc_configtest() {
# use rc_exec here since daemon_flags may contain arguments with spaces
rc_exec "${daemon} -n ${daemon_flags}"
}
#!/bin/ksh
#
-# $OpenBSD: sshd,v 1.6 2020/01/25 12:05:08 sthen Exp $
+# $OpenBSD: sshd,v 1.7 2022/08/29 19:14:25 ajacoutot Exp $
daemon="/usr/sbin/sshd"
pexp="sshd: ${daemon}${daemon_flags:+ ${daemon_flags}} \[listener\].*"
-rc_reload() {
- ${daemon} ${daemon_flags} -t && pkill -HUP -xf "${pexp}"
+rc_configtest() {
+ ${daemon} ${daemon_flags} -t
}
rc_cmd $1
#!/bin/ksh
#
-# $OpenBSD: vmd,v 1.11 2022/05/21 12:42:21 ajacoutot Exp $
+# $OpenBSD: vmd,v 1.12 2022/08/29 19:14:25 ajacoutot Exp $
daemon="/usr/sbin/vmd"
. /etc/rc.d/rc.subr
-# Child will not return a config parsing error to the parent.
-rc_pre() {
+rc_configtest() {
# use rc_exec here since daemon_flags may contain arguments with spaces
rc_exec "${daemon} -n ${daemon_flags}"
}