mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-29 21:42:39 +00:00
Merge pull request #285 from justincormack/waitsock
Wait for docker to finish starting up before terminateing init script
This commit is contained in:
commit
5edb4c5fb4
@ -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