mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-15 14:52:27 +00:00
2fb01b4adf
* Cherry-pick: Fixing AUTOPAUSE on Raspberry Pi 4s (#708) * implement autopause interface selection * concentrate ps calls in function file * wording and add note about PAPER's etc watchdogs
8 lines
189 B
Bash
Executable file
8 lines
189 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. /start-utils
|
|
|
|
if [[ $( ps -ax -o stat,comm | grep 'java' | awk '{ print $1 }') =~ ^T.*$ ]] ; then
|
|
logAutopauseAction "Knocked, resuming Java process"
|
|
pkill -CONT java
|
|
fi
|