Hello,
I have a 7d2d server that does not want to shutdown properly. This prevents me from doing scheduled restarts.
Back on A20 I don't recall these issues, but its been a couple of months. We picked the game back up on A21 and I also migrated to different hardware.
The egg uses telnet to show the console log and I guess the stop command is sent to the telnet session and not bash.
The official stop command is "Shutdown" this shuts the server down but the bash / telnet window is still open making PT think the server is still trying to shutdown.
I usually just kill the server and start it back up. However today I've done some testing and found exit will work to close the telnet / bash session.
I tried shutdown && exit for the stop command, but the sever still hangs. I think the exit command is also going to the telnet session so is not closing bash.
If it helps the eggs startup command is this
./7DaysToDieServer.x86_64 -configfile=serverconfig.xml -quit -batchmode -nographics -dedicated -ServerPort=${SERVER_PORT} -ServerDisabledNetworkProtocols=${SERVER_DISABLED_NETWORK_PROTOCOLS} -ServerMaxPlayerCount=${MAX_PLAYERS} -GameDifficulty=${GAME_DIFFICULTY} -ControlPanelEnabled=false -TelnetEnabled=true -TelnetPort=${TELNET_PORT} -TelnetPassword=${PASSWORD} -logfile logs/latest.log & echo -e "Checking on telnet connection" && until nc -z -v -w5 127.0.0.1 ${TELNET_PORT}; do echo "Waiting for telnet connection..."; sleep 5; done && $( [[ -z ${PASSWORD} ]] && printf %s "telnet -E 127.0.0.1 ${TELNET_PORT}" || printf %s "rcon -t telnet -a 127.0.0.1:${TELNET_PORT} -p {{PASSWORD}}" )
Here is the Egg I use
https://github.com/parkervcp/eggs/tree/master/game_eggs/steamcmd_servers/7_days_to_die
I've tried removing telnet from startup, but then there is no console and the shutdown command does not work at all.
Any suggestions on gracefully shutting the server down?
Thank you