docker-minecraft-server/files/autopause/resume.sh
2022-07-30 12:06:22 -05:00

12 lines
238 B
Bash
Executable File

#!/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, resuming Java process"
pkill -CONT java
fi