Compare commits

..

2 Commits

Author SHA1 Message Date
scriptos
8cfabd27b4 initial 2025-09-19 21:24:59 +02:00
scriptos
60b2c6d568 Wording 2025-09-19 21:21:33 +02:00
2 changed files with 12 additions and 1 deletions

View File

@@ -204,7 +204,7 @@ while :; do
if [[ -n "$joined" ]]; then
while IFS= read -r name; do
[[ -z "$name" ]] && continue
ntfy_notify "$(build_body "Player \"${name}\" ist beigetreten.")" "$NTFY_PRIORITY_JOIN" || true
ntfy_notify "$(build_body "Player \"${name}\" hat den Server betreten.")" "$NTFY_PRIORITY_JOIN" || true
done <<<"$joined"
fi
if [[ -n "$left" ]]; then

11
stop.sh Normal file
View File

@@ -0,0 +1,11 @@
cd /home/scripts/minecraft-ntfy-notify
RUN="state.mc.techniverse.local_25673_minecraft-java-feed/running.mc.techniverse.local_25673_minecraft-java-feed"
# PID aus der letzten Zeile lesen und sanft beenden
PID="$(tail -n1 "$RUN")"
kill -TERM "$PID"
# prüfen
sleep 1
ps -p "$PID" || echo "gestoppt"