mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
0e0bb09533
Also * Refactored auto files, server.properties, and rcon-cmds
14 lines
274 B
Bash
14 lines
274 B
Bash
#!/bin/bash
|
|
|
|
. /start-utils
|
|
if isTrue "${DEBUG_AUTOSTOP}"; then
|
|
set -x
|
|
fi
|
|
|
|
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
|