Browse code

Try to avoid issues when the Docker daemon restarts.

This change will allow the Docker daemon's init script to wait up to 5
minutes before being forcibly terminated by the initscript. Many
non-trivial containers will take more than the default 3 seconds to
stop, which can result in containers whose rootfs is still mounted and
will not restart when the daemon starts up again, or worse, orphan
processes that are still running.

Signed-off-by: Steven Merrill <steven.merrill@gmail.com>

Steven Merrill authored on 2014/09/18 05:42:25
Showing 1 changed files
... ...
@@ -68,7 +68,7 @@ start() {
68 68
 
69 69
 stop() {
70 70
     echo -n $"Stopping $prog: "
71
-    killproc -p $pidfile $prog
71
+    killproc -p $pidfile -d 300 $prog
72 72
     retval=$?
73 73
     echo
74 74
     [ $retval -eq 0 ] && rm -f $lockfile