changeset 2533:7a79b460b7a0 draft

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.
author Roy Marples <roy@marples.name>
date Fri, 06 Jun 2014 20:08:07 +0000
parents 764b6bb7a59b
children 6b7261a08b44
files dhcpcd-hooks/50-ntp.conf dhcpcd-hooks/50-ypbind.in
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd-hooks/50-ntp.conf	Fri Jun 06 19:22:54 2014 +0000
+++ b/dhcpcd-hooks/50-ntp.conf	Fri Jun 06 20:08:07 2014 +0000
@@ -17,7 +17,7 @@
 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
--- a/dhcpcd-hooks/50-ypbind.in	Fri Jun 06 19:22:54 2014 +0000
+++ b/dhcpcd-hooks/50-ypbind.in	Fri Jun 06 20:08:07 2014 +0000
@@ -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@}