Is this a bug?
The auto-shutdown after 60 seconds of not listening doesn't seem to work.
serverdowntries=0
sleep 5
while true; do
local pid="$(getServerPID)"
if [ "$pid" == "$serverpid" ]; then
serverdowntries=0 # ... Always reset here.
if [ "$serveronline" -eq 0 ]; then
:
elif isTheServerUp; then
(( serverdowntries++ )) # ... Always 1.
if (( serverdowntries > 12 )); then
# **No reach here**
Is this a bug?
The auto-shutdown after 60 seconds of not listening doesn't seem to work.
ark-server-tools/tools/arkmanager
Line 1443 in f929308
serverdowntries=0 sleep 5 while true; do local pid="$(getServerPID)" if [ "$pid" == "$serverpid" ]; then serverdowntries=0 # ... Always reset here. if [ "$serveronline" -eq 0 ]; then : elif isTheServerUp; then (( serverdowntries++ )) # ... Always 1. if (( serverdowntries > 12 )); then # **No reach here**