mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
Wait for docker to finish starting up before terminateing init script
This means dependent services can rely on docker being up. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
37cd71fa0d
commit
498c481700
@ -1,8 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# now start very soon after docker, let containerd start
|
||||
sleep 1
|
||||
|
||||
printf '\n'
|
||||
DEV=$(ls /dev | grep '[sxv]da$')
|
||||
[ $? -eq 0 ] && printf "✓ Drive found: $DEV\n" || printf "✗ No drive found\n"
|
||||
|
@ -75,6 +75,8 @@ start()
|
||||
--stdout "${DOCKER_LOGFILE}" \
|
||||
-- --pidfile=${pidfile} ${DOCKER_OPTS}
|
||||
|
||||
ewaitfile 20 ${pidfile} /var/run/docker.sock /var/run/docker/libcontainerd/docker-containerd.sock
|
||||
|
||||
eend $? "Failed to start docker"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user