Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CA-76927: make the timeout of networkd's init script longer than that…

… of dhclient

This ensures that the init script does not return an error due to
a slow DHCP process (the timeout of dhclient is 60s).

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
  • Loading branch information...
commit a82cf857dcc162535da6b6b35b825f1aa57a1a6f 1 parent 0c1e10f
@robhoes robhoes authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/init.d-networkd
View
4 scripts/init.d-networkd
@@ -38,7 +38,7 @@ start() {
${NETWORKD} -daemon -pidfile ${PID_FILE} >/dev/null 2>&1 </dev/null
- MAX_RETRIES=30
+ MAX_RETRIES=100
RETRY=0
while [ ${RETRY} -lt ${MAX_RETRIES} ]; do
PID=$(cat ${PID_FILE} 2>/dev/null)
@@ -55,7 +55,7 @@ start() {
done
echo -n $"failed to start xcp-networkd."
failure $"failed to start xcp-networkd."
- killproc networkd
+ killproc xcp-networkd
rm -f ${SUBSYS_FILE} ${PID_FILE}
echo
return 1
Please sign in to comment.
Something went wrong with that request. Please try again.