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
+1 -1
View File
@@ -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