lower terraria idle cpu

This commit is contained in:
Matthew Tran 2025-03-15 02:56:13 -07:00
parent ceaa51981e
commit c1f31adcd9
3 changed files with 14 additions and 14 deletions

View File

@ -8,7 +8,7 @@ Services deployed on [matthewtran.com](https://matthewtran.com).
- p2pool (`xmrig -o matthewtran.com`) - p2pool (`xmrig -o matthewtran.com`)
- minecraft - minecraft
- ~~minecraft bedrock~~ - ~~minecraft bedrock~~
- ~~terraria~~ - terraria
- nas (`<server>/<name>` on LAN) - nas (`<server>/<name>` on LAN)
- wireguard - wireguard

View File

@ -109,18 +109,18 @@ services:
# - ./minecraft_bedrock/worlds:/home/me/worlds # - ./minecraft_bedrock/worlds:/home/me/worlds
# cap_drop: # cap_drop:
# - ALL # - ALL
# terraria: terraria:
# restart: always restart: always
# build: terraria/. build: terraria/.
# entrypoint: ["/bin/sh", "/home/me/entry.sh"] entrypoint: ["/bin/sh", "/home/me/entry.sh"]
# ports: ports:
# - "7777:7777" - "7777:7777"
# networks: networks:
# - game - game
# volumes: volumes:
# - ./terraria/worlds:/home/me/worlds - ./terraria/worlds:/home/me/worlds
# cap_drop: cap_drop:
# - ALL - ALL
nas: nas:
restart: always restart: always
build: nas/. build: nas/.

View File

@ -8,7 +8,7 @@ trap 'cleanup' TERM
rm cmd rm cmd
mkfifo 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! echo "help\n" > cmd # shell waits for FIFO to be opened for writing before starting program!
wait $! # wait for SIGTERM wait $! # wait for SIGTERM
wait $! # wait for server to stop wait $! # wait for server to stop