From: Roy Marples Date: Fri, 6 Jun 2014 20:08:07 +0000 (+0000) Subject: Restarting ntp/yp are not critical and their initialisation continues X-Git-Tag: v6.4.0~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecdf73c1b2c836e07088870689281d937926ca57;p=thirdparty%2Fdhcpcd.git Restarting ntp/yp are not critical and their initialisation continues in the background as well so we may as well background the restart commands for faster dhcpcd performance. --- diff --git a/dhcpcd-hooks/50-ntp.conf b/dhcpcd-hooks/50-ntp.conf index 4b1284cc..de9d4d78 100644 --- a/dhcpcd-hooks/50-ntp.conf +++ b/dhcpcd-hooks/50-ntp.conf @@ -17,7 +17,7 @@ if type invoke-rc.d >/dev/null 2>&1; then fi : ${ntp_service:=ntpd} -: ${ntp_restart_cmd:=service_condcommand $ntp_service restart} +: ${ntp_restart_cmd:=service_condcommand $ntp_service restart &} ntp_conf_dir="$state_dir/ntp.conf" # If we have installed OpenNTPD but not NTP then prefer it diff --git a/dhcpcd-hooks/50-ypbind.in b/dhcpcd-hooks/50-ypbind.in index 1421a169..a4b5a2da 100644 --- a/dhcpcd-hooks/50-ypbind.in +++ b/dhcpcd-hooks/50-ypbind.in @@ -1,8 +1,8 @@ # Sample dhcpcd hook for ypbind # This script is only suitable for the BSD versions. -: ${ypbind_restart_cmd:=service_command ypbind restart} -: ${ypbind_stop_cmd:=service_condcommand ypbind stop} +: ${ypbind_restart_cmd:=service_command ypbind restart &} +: ${ypbind_stop_cmd:=service_condcommand ypbind stop &} ypbind_dir="$state_dir/ypbind" : ${ypdomain_dir:=@YPDOMAIN_DIR@} : ${ypdomain_suffix:=@YPDOMAIN_SUFFIX@}