mirror of
https://github.com/Luzifer/rust-server.git
synced 2024-09-20 00:53:00 +00:00
12 lines
361 B
Bash
12 lines
361 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Copy default rustserver script from Linux Game Server Managers when not present
|
||
|
[ -e /home/rustserver/rustserver ] || cp /opt/rustserver /home/rustserver/rustserver
|
||
|
|
||
|
/home/rustserver/rustserver "$@"
|
||
|
|
||
|
# Keep Docker container running until gameserver process is not longer available
|
||
|
while ( pgrep RustDedicated >/dev/null 2>&1 ); do
|
||
|
sleep 1
|
||
|
done
|