1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

#16560 Add timeout to sudo service docker stop on sysvinit

Add 10 seconds timeout when running `sudo service docker stop`. This is
especially needed when running `sudo service docker restart`. Otherwise,
`restart` results in exitstatus 1, because `start` has nothing to do.

Signed-off-by: Ewa Czechowska <ewa@ai-traders.com>
This commit is contained in:
Ewa Czechowska 2015-09-24 18:57:43 +00:00
parent 23750fb802
commit 5c94a9e800

View file

@ -117,7 +117,7 @@ case "$1" in
check_init check_init
fail_unless_root fail_unless_root
log_begin_msg "Stopping $DOCKER_DESC: $BASE" log_begin_msg "Stopping $DOCKER_DESC: $BASE"
start-stop-daemon --stop --pidfile "$DOCKER_SSD_PIDFILE" start-stop-daemon --stop --pidfile "$DOCKER_SSD_PIDFILE" --retry 10
log_end_msg $? log_end_msg $?
;; ;;