Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates mhl to treat exit code 99 as a normal restart #449

Merged
merged 1 commit into from
Jul 25, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions bin/mhl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ while [ 1 = 1 ]; do

echo
echo Deleting startup file
# rm -f mh.started
touch mh.startup

# Avoid a memory leak problem in Red Hat 8
Expand All @@ -29,13 +28,18 @@ while [ 1 = 1 ]; do
exit
fi

# if [ ! -f mh.started ]; then
if [ -f mh.startup ]; then
if [ -f mh.startup ]; then
echo mh failed on startup ... will not restart
exit
fi

echo mh had an unexpected exit ... sleep a bit, then restarting
if [ $rc = 99 ]; then
echo -n restart requested
else
echo -n mh had an unexpected exit
fi

echo " ... sleep a bit, then restarting"
date >> mh_restart.log
sleep 5

Expand Down