initial
This commit is contained in:
parent
60b2c6d568
commit
8cfabd27b4
11
stop.sh
Normal file
11
stop.sh
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user