mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 14:22:27 +00:00
7 lines
213 B
Bash
7 lines
213 B
Bash
|
#!/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
|