mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2025-10-11 20:17:54 +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`)
|
- 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
|
||||||
|
|
||||||
|
24
compose.yml
24
compose.yml
@ -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/.
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user