mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-31 11:17:14 +00:00
Use pkill by default for autostop feature (#1707)
This commit is contained in:
@@ -6,4 +6,8 @@ if isTrue "${DEBUG_AUTOSTOP}"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
logAutostopAction "Stopping Java process"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user