mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Wait for pidfile to exist when starting with Redhat init script
Fixes #5359 Docker-DCO-1.1-Signed-off-by: Chris St. Pierre <chris.a.st.pierre@gmail.com> (github: stpierre)
This commit is contained in:
parent
c4fc591fbe
commit
a598dba134
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ start() {
|
||||||
$exec -d $other_args &>> $logfile &
|
$exec -d $other_args &>> $logfile &
|
||||||
pid=$!
|
pid=$!
|
||||||
touch $lockfile
|
touch $lockfile
|
||||||
|
# wait for the pidfile to exist. see
|
||||||
|
# https://github.com/dotcloud/docker/issues/5359
|
||||||
|
while [ ! -f $pidfile ]; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
success
|
success
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue