add all the script needed (hopefully this means i dont need to even make anymore commits lol)
This commit is contained in:
13
stop_all.sh
Executable file
13
stop_all.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
STATE="$HOME/.soundboard"
|
||||
|
||||
[[ -f "$STATE/playing.pids" ]] || exit 0
|
||||
|
||||
while read -r PGID; do
|
||||
kill -TERM -- "-$PGID" 2>/dev/null || true
|
||||
done < "$STATE/playing.pids"
|
||||
|
||||
rm -f "$STATE/playing.pids"
|
||||
|
||||
echo "All soundboard playback stopped."
|
||||
Reference in New Issue
Block a user