docker-minecraft-server/files/auto/stop.sh

14 lines
274 B
Bash
Raw Normal View History

2021-12-21 00:27:27 +00:00
#!/bin/bash
. /start-utils
if isTrue "${DEBUG_AUTOSTOP}"; then
set -x
fi
2021-12-21 00:27:27 +00:00
logAutostopAction "Stopping Java process"
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