mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-03 12:11:41 +00: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:
@@ -117,7 +117,7 @@ case "$1" in
|
||||
check_init
|
||||
fail_unless_root
|
||||
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 $?
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user