mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #14868 from jeffminard-ck/rhel-init-detect-failure
Allow RHEL init script to detect daemon start pid failure
This commit is contained in:
commit
ebe27cb34c
1 changed files with 6 additions and 0 deletions
|
@ -65,7 +65,13 @@ start() {
|
|||
while [ ! -f $pidfile -a $tries -lt 10 ]; do
|
||||
sleep 1
|
||||
tries=$((tries + 1))
|
||||
echo -n '.'
|
||||
done
|
||||
if [ ! -f $pidfile ]; then
|
||||
failure
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
success
|
||||
echo
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue