This commit is contained in:
2025-11-25 18:22:45 +01:00
parent 073632a7b9
commit 7370426a9c
15 changed files with 301 additions and 136 deletions

16
schedule-restart.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
check_online() {
docker compose exec spigot rcon list \
| grep "^There are 0 of a max of" > /dev/null
}
while ! check_online; do
echo "Players are still online; re-checking in 60 seconds ..."
sleep 60
done
echo "No players are online; restarting now ..."
docker compose up -d spigot