mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 06:12:27 +00:00
Use pkill by default for autostop feature (#1707)
This commit is contained in:
parent
cca9b3e21d
commit
3c131f853d
1 changed files with 5 additions and 1 deletions
|
@ -6,4 +6,8 @@ if isTrue "${DEBUG_AUTOSTOP}"; then
|
|||
fi
|
||||
|
||||
logAutostopAction "Stopping Java process"
|
||||
kill -SIGTERM 1
|
||||
if isTrue "${AUTOSTOP_PKILL_USE_SUDO:-false}"; then
|
||||
sudo pkill -f --signal SIGTERM mc-server-runner
|
||||
else
|
||||
pkill -f --signal SIGTERM mc-server-runner
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue