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

7 lines
213 B
Bash
Raw Normal View History

2020-05-20 13:17:58 +00:00
#!/bin/bash
if [[ $( ps -a -o stat,comm | grep 'java' | awk '{ print $1 }') =~ ^T.*$ ]] ; then
echo "[$(date -Iseconds)] [Autopause] Knocked, resuming Java process" >/tmp/terminal-mc
killall -q -CONT java
fi