Files
docker-minecraft-server/files/autopause/resume.sh
T

9 lines
188 B
Bash
Executable File

#!/bin/bash
. /start-utils
if [[ $( ps -a -o stat,comm | grep 'java' | awk '{ print $1 }') =~ ^T.*$ ]] ; then
logAutopauseAction "Knocked, resuming Java process"
pkill -CONT java
fi