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

9 lines
193 B
Bash
Raw Normal View History

2020-05-20 13:17:58 +00:00
#!/bin/bash
2020-05-23 14:15:10 +00:00
. /start-utils
2020-05-20 13:17:58 +00:00
if [[ $( ps -a -o stat,comm | grep 'java' | awk '{ print $1 }') =~ ^T.*$ ]] ; then
2020-05-23 14:15:10 +00:00
logAutopauseAction "Knocked, resuming Java process"
2020-05-20 13:17:58 +00:00
killall -q -CONT java
fi