diff --git a/src/etc/rc.d/bgpd b/src/etc/rc.d/bgpd index 3c8cdb25..b7e3e165 100644 --- a/src/etc/rc.d/bgpd +++ b/src/etc/rc.d/bgpd @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: bgpd,v 1.4 2018/01/11 19:52:12 rpe Exp $ +# $OpenBSD: bgpd,v 1.5 2019/01/21 01:41:16 claudio Exp $ daemon="/usr/sbin/bgpd" @@ -8,7 +8,8 @@ daemon="/usr/sbin/bgpd" # child will not return a config parsing error to the parent rc_pre() { - ${daemon} -n ${daemon_flags} + # use rcexec here since daemon_flags may contain arguments with spaces + ${rcexec} "${daemon} -n ${daemon_flags}" } rc_cmd $1 diff --git a/src/etc/rc.d/httpd b/src/etc/rc.d/httpd index e8067315..bdd98f9b 100644 --- a/src/etc/rc.d/httpd +++ b/src/etc/rc.d/httpd @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: httpd,v 1.6 2018/01/11 19:52:12 rpe Exp $ +# $OpenBSD: httpd,v 1.7 2019/01/21 01:41:16 claudio Exp $ daemon="/usr/sbin/httpd" @@ -8,7 +8,8 @@ daemon="/usr/sbin/httpd" # child will not return a config parsing error to the parent rc_pre() { - ${daemon} -n ${daemon_flags} + # use rcexec here since daemon_flags may contain arguments with spaces + ${rcexec} "${daemon} -n ${daemon_flags}" } rc_cmd $1 diff --git a/src/etc/rc.d/iked b/src/etc/rc.d/iked index 6f1d8ff4..d9a0d285 100644 --- a/src/etc/rc.d/iked +++ b/src/etc/rc.d/iked @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: iked,v 1.6 2018/01/11 22:44:44 rpe Exp $ +# $OpenBSD: iked,v 1.7 2019/01/21 01:41:16 claudio Exp $ daemon="/sbin/iked" @@ -13,7 +13,8 @@ rc_pre() { [[ ${sasyncd_flags} != NO ]] && daemon_flags="-S ${daemon_flags}" - ${daemon} -n ${daemon_flags} + # use rcexec here since daemon_flags may contain arguments with spaces + ${rcexec} "${daemon} -n ${daemon_flags}" } rc_cmd $1 diff --git a/src/etc/rc.d/relayd b/src/etc/rc.d/relayd index 283a11df..a2688e8f 100644 --- a/src/etc/rc.d/relayd +++ b/src/etc/rc.d/relayd @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: relayd,v 1.5 2018/01/11 22:44:44 rpe Exp $ +# $OpenBSD: relayd,v 1.6 2019/01/21 01:41:16 claudio Exp $ daemon="/usr/sbin/relayd" @@ -8,7 +8,8 @@ daemon="/usr/sbin/relayd" # Child will not return a config parsing error to the parent. rc_pre() { - ${daemon} -n ${daemon_flags} + # use rcexec here since daemon_flags may contain arguments with spaces + ${rcexec} "${daemon} -n ${daemon_flags}" } rc_cmd $1 diff --git a/src/etc/rc.d/switchd b/src/etc/rc.d/switchd index 2ed0bc2d..bafb7c2c 100644 --- a/src/etc/rc.d/switchd +++ b/src/etc/rc.d/switchd @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: switchd,v 1.3 2018/01/11 22:44:44 rpe Exp $ +# $OpenBSD: switchd,v 1.4 2019/01/21 01:41:16 claudio Exp $ daemon="/usr/sbin/switchd" @@ -8,7 +8,8 @@ daemon="/usr/sbin/switchd" # Child will not return a config loading error to the parent. rc_pre() { - ${daemon} -n ${daemon_flags} + # use rcexec here since daemon_flags may contain arguments with spaces + ${rcexec} "${daemon} -n ${daemon_flags}" } rc_cmd $1 diff --git a/src/etc/rc.d/vmd b/src/etc/rc.d/vmd index a81ddcc9..4f8e8a7a 100644 --- a/src/etc/rc.d/vmd +++ b/src/etc/rc.d/vmd @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: vmd,v 1.9 2018/09/27 17:15:36 reyk Exp $ +# $OpenBSD: vmd,v 1.10 2019/01/21 01:41:16 claudio Exp $ daemon="/usr/sbin/vmd" @@ -8,7 +8,8 @@ daemon="/usr/sbin/vmd" # Child will not return a config parsing error to the parent. rc_pre() { - ${daemon} -n ${daemon_flags} + # use rcexec here since daemon_flags may contain arguments with spaces + ${rcexec} "${daemon} -n ${daemon_flags}" } rc_stop() {