From 7bde84cc04478b1e70b9fa55624758399b4a85ec Mon Sep 17 00:00:00 2001 From: Timo Reichl Date: Fri, 24 Jun 2022 00:00:35 +0200 Subject: [PATCH] games/base: Fix tmux error on server termination 'usage: kill-session [-aC] [-t target-session]' Signed-off-by: Timo Reichl --- image/games/base/hlds/usr/local/bin/server.sh | 2 +- image/games/base/srcds/usr/local/bin/server.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/image/games/base/hlds/usr/local/bin/server.sh b/image/games/base/hlds/usr/local/bin/server.sh index c85cea0..0ff9bb2 100755 --- a/image/games/base/hlds/usr/local/bin/server.sh +++ b/image/games/base/hlds/usr/local/bin/server.sh @@ -43,7 +43,7 @@ clear_console() { wait() { until ! _is_running hlds; do :; done - ${TMUX_CMD} kill-session ${STEAMCMD_SERVER_SESSION_NAME} + ${TMUX_CMD} kill-session -t ${STEAMCMD_SERVER_SESSION_NAME} ${TMUX_CMD} kill-server return 0 diff --git a/image/games/base/srcds/usr/local/bin/server.sh b/image/games/base/srcds/usr/local/bin/server.sh index f113af7..b5dbd66 100755 --- a/image/games/base/srcds/usr/local/bin/server.sh +++ b/image/games/base/srcds/usr/local/bin/server.sh @@ -37,7 +37,7 @@ healthy() { wait() { until ! _is_running srcds; do :; done - ${TMUX_CMD} kill-session ${STEAMCMD_SERVER_SESSION_NAME} + ${TMUX_CMD} kill-session -t ${STEAMCMD_SERVER_SESSION_NAME} ${TMUX_CMD} kill-server return 0