Skip to content
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
4 changes: 3 additions & 1 deletion tools/arkmanager
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,6 @@ doRun() {
# Grab the current server PID
local pid="$(getServerPID)"
if [ "$pid" == "$serverpid" ]; then
serverdowntries=0
if [ "$serveronline" -eq 0 ]; then
# Check if the server has fully started
if ! isTheServerUp; then
Expand All @@ -1451,6 +1450,7 @@ doRun() {
touch "$arkserverroot/$arkautorestartfile"
restartserver=1
fi
serverdowntries=0
serveronline=1
fi
elif isTheServerUp; then
Expand All @@ -1476,6 +1476,8 @@ doRun() {
# Exit the server check loop
break
fi
else
serverdowntries=0
fi
elif [ -z "$pid" ]; then
echo "$(timestamp): Process '$serverpid' has exited"
Expand Down