Updated kill for no rcon

This commit is contained in:
Carlos M. Martinez
2024-01-24 19:08:04 -05:00
parent 945977237b
commit a7e4a58f8a

View File

@@ -21,8 +21,8 @@ term_handler() {
if [ ${RCON_ENABLED} = true ]; then
rcon-cli save
rcon-cli shutdown 1
else # Not graceful
kill -SIGTERM $killpid
else # Does not save
kill -SIGTERM $(pidof PalServer-Linux-Test)
fi
tail --pid=$killpid -f 2>/dev/null
}