1
0
Fork 0
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:
Jessie Frazelle 2015-08-24 14:24:36 -07:00
commit ebe27cb34c

View file

@ -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