docker-minecraft-server/files/autopause/resume.sh
2020-05-20 08:17:58 -05:00

7 lines
213 B
Bash
Executable File

#!/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