mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
Updated kill for no rcon
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user