mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2025-10-11 12:07:56 +00:00
lower terraria idle cpu
This commit is contained in:
parent
ceaa51981e
commit
c1f31adcd9
@ -8,7 +8,7 @@ Services deployed on [matthewtran.com](https://matthewtran.com).
|
||||
- p2pool (`xmrig -o matthewtran.com`)
|
||||
- minecraft
|
||||
- ~~minecraft bedrock~~
|
||||
- ~~terraria~~
|
||||
- terraria
|
||||
- nas (`<server>/<name>` on LAN)
|
||||
- wireguard
|
||||
|
||||
|
24
compose.yml
24
compose.yml
@ -109,18 +109,18 @@ services:
|
||||
# - ./minecraft_bedrock/worlds:/home/me/worlds
|
||||
# cap_drop:
|
||||
# - ALL
|
||||
# terraria:
|
||||
# restart: always
|
||||
# build: terraria/.
|
||||
# entrypoint: ["/bin/sh", "/home/me/entry.sh"]
|
||||
# ports:
|
||||
# - "7777:7777"
|
||||
# networks:
|
||||
# - game
|
||||
# volumes:
|
||||
# - ./terraria/worlds:/home/me/worlds
|
||||
# cap_drop:
|
||||
# - ALL
|
||||
terraria:
|
||||
restart: always
|
||||
build: terraria/.
|
||||
entrypoint: ["/bin/sh", "/home/me/entry.sh"]
|
||||
ports:
|
||||
- "7777:7777"
|
||||
networks:
|
||||
- game
|
||||
volumes:
|
||||
- ./terraria/worlds:/home/me/worlds
|
||||
cap_drop:
|
||||
- ALL
|
||||
nas:
|
||||
restart: always
|
||||
build: nas/.
|
||||
|
@ -8,7 +8,7 @@ trap 'cleanup' TERM
|
||||
|
||||
rm cmd
|
||||
mkfifo cmd
|
||||
./TerrariaServer.bin.x86_64 -config config.txt -pass $(cat password.txt) < cmd &
|
||||
tail -f cmd | ./TerrariaServer.bin.x86_64 -config config.txt -pass $(cat password.txt) &
|
||||
echo "help\n" > cmd # shell waits for FIFO to be opened for writing before starting program!
|
||||
wait $! # wait for SIGTERM
|
||||
wait $! # wait for server to stop
|
||||
|
Loading…
x
Reference in New Issue
Block a user