mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 14:22:27 +00:00
0e0bb09533
Also * Refactored auto files, server.properties, and rcon-cmds
13 lines
274 B
Bash
13 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
|