Skip to content

Commit

Permalink
Docs (examples): Use exec for game binary in `docs/samples/docker-c…
Browse files Browse the repository at this point in the history
…ompose/docker-compose.bash-c.yml` (#159)

Doing so ensures the binary is run as `PID 1` in any case.
  • Loading branch information
joeltimothyoh authored Nov 13, 2023
1 parent b966f37 commit 3c22f81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/samples/docker-compose/docker-compose.bash-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
command:
- |
set -e
game/bin/linuxsteamrt64/cs2 -dedicated -port 27015 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2
exec game/bin/linuxsteamrt64/cs2 -dedicated -port 27015 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2
srcds-csgo:
image: sourceservers/csgo:latest
Expand All @@ -30,7 +30,7 @@ services:
set -e
printenv
ls -al
srcds_linux -game csgo -port 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2
exec srcds_linux -game csgo -port 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2
hlds-cstrike:
image: goldsourceservers/cstrike:latest
Expand All @@ -46,4 +46,4 @@ services:
set -e
printenv
ls -al
hlds_linux -game cstrike +port 28015 +maxplayers 10 +map de_dust2
exec hlds_linux -game cstrike +port 28015 +maxplayers 10 +map de_dust2

0 comments on commit 3c22f81

Please sign in to comment.