From f7b1d88a1eddf6c535b73cbb67d0d9b6889081cd Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Sun, 23 Nov 2025 11:48:51 +1000 Subject: [PATCH] Fix restart on server not listening Fix a bug identified in #1297 where serverdowntries is reset in the wrong place, resulting in the restart on server not listening never occurring --- tools/arkmanager | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/arkmanager b/tools/arkmanager index d774c6f..6767f3f 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -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 @@ -1451,6 +1450,7 @@ doRun() { touch "$arkserverroot/$arkautorestartfile" restartserver=1 fi + serverdowntries=0 serveronline=1 fi elif isTheServerUp; then @@ -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"