Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
games/base: Kill tmux session after server has terminated
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <[email protected]>
  • Loading branch information
Timo Reichl committed Jun 20, 2022
1 parent a662d25 commit 1d9183f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions image/games/base/hlds/usr/local/bin/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ clear_console() {

wait() {
until ! _is_running hlds; do :; done

${TMUX_CMD} kill-session ${STEAMCMD_SERVER_SESSION_NAME}
${TMUX_CMD} kill-server

return 0
}

Expand Down
4 changes: 4 additions & 0 deletions image/games/base/srcds/usr/local/bin/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ healthy() {

wait() {
until ! _is_running srcds; do :; done

${TMUX_CMD} kill-session ${STEAMCMD_SERVER_SESSION_NAME}
${TMUX_CMD} kill-server

return 0
}

Expand Down

0 comments on commit 1d9183f

Please sign in to comment.