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
|
while [ ! -f $pidfile -a $tries -lt 10 ]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
tries=$((tries + 1))
|
tries=$((tries + 1))
|
||||||
|
echo -n '.'
|
||||||
done
|
done
|
||||||
|
if [ ! -f $pidfile ]; then
|
||||||
|
failure
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
success
|
success
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue