mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-03 12:11:41 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user