2023-09-06 12:39:36 +00:00

13 lines
234 B
Bash

#!/bin/sh
cleanup() {
echo "TODO"
}
trap 'cleanup' TERM
# TODO use tmux so can send exit
./TerrariaServer.bin.x86_64 -config config.txt -pass $(cat password.txt) &
wait $! # wait for SIGTERM
# wait $! # wait for server to stop