mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 22:32:28 +00:00
12 lines
283 B
Bash
12 lines
283 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
. /start-utils
|
||
|
|
||
|
if isTrue "${ENABLE_AUTOPAUSE}" && [[ "$( ps -a -o stat,comm | grep 'java' | awk '{ print $1 }')" =~ ^T.*$ ]]; then
|
||
|
echo "Java process suspended by Autopause function"
|
||
|
exit 0
|
||
|
else
|
||
|
mc-monitor status --host localhost --port $SERVER_PORT
|
||
|
exit $?
|
||
|
fi
|