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
13 lines
284 B
Bash
13 lines
284 B
Bash
#!/bin/bash
|
|
|
|
. /start-utils
|
|
if isTrue "${DEBUG_AUTOPAUSE}"; then
|
|
set -x
|
|
fi
|
|
|
|
if [[ $( ps -ax -o stat,comm | grep 'java' | awk '{ print $1 }') =~ ^T.*$ ]] ; then
|
|
logAutopauseAction "Knocked from $1, resuming Java process"
|
|
echo "$1" > /var/log/knocked-source
|
|
pkill -CONT java
|
|
fi
|