mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
ffb50cfe28
* Replacing killall with pkill and ps -a to ps -ax * Adding net-tools and removing -q from pkill * Missed the resume.sh * Christ there's a lot of ps calls * Adding -x to health.sh, replacing killall with pkill in sudoers-mv, and replacing su-exec with gosu in knockd-config.cfg Co-authored-by: sean.sullivan.ctr@progeny.net <sean.sullivan.ctr@progeny.net>
9 lines
189 B
Bash
Executable File
9 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
|