]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Restarting ntp/yp are not critical and their initialisation continues
authorRoy Marples <roy@marples.name>
Fri, 6 Jun 2014 20:08:07 +0000 (20:08 +0000)
committerRoy Marples <roy@marples.name>
Fri, 6 Jun 2014 20:08:07 +0000 (20:08 +0000)
in the background as well so we may as well background the restart commands
for faster dhcpcd performance.

dhcpcd-hooks/50-ntp.conf
dhcpcd-hooks/50-ypbind.in

index 4b1284cc8ff078dd8a8ce18201f1e115925b7694..de9d4d78bb5a739c1a202128fb2f566ed3136b8d 100644 (file)
@@ -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
index 1421a169ff47faa79daa1654db1567a2f6e47827..a4b5a2da1162e9c34270a896cc99b58caec547a5 100644 (file)
@@ -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@}