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
1 changed files with 6 additions and 0 deletions

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