docker-minecraft-server/files/autopause/resume.sh
2020-05-23 09:15:10 -05:00

9 lines
193 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"
killall -q -CONT java
fi