Allow longer for Docker to shut down

Docker needs 10s at least for containers to be allowed to shut down,
so allow 15s maximum between SIGTERM and SIGKILL.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-07-28 17:25:49 +01:00
parent 62573222c1
commit 05610e7965

View File

@ -94,7 +94,7 @@ stop()
# stop docker
einfo "Stopping docker"
pidfile="/run/docker.pid"
start-stop-daemon --stop --quiet --pidfile ${pidfile}
start-stop-daemon --stop --quiet --pidfile ${pidfile} --retry 15
# taken from localmount stop script
# XXX fix more cleanly see #35