Better restart

This commit is contained in:
geens 2025-08-12 17:01:34 +02:00
parent 4eea572c35
commit a89140edc4

View File

@ -1,16 +1,24 @@
#!/usr/bin/bash
git stash
git pull
while true
do
git stash
git pull
qjackctl /start-server &
JACK_PID=$!
qjackctl /start-server &
JACK_PID=$!
cargo run --release --bin audio_engine &
AUDIO_ENGINE_PID=$!
sleep 5
cargo run --release --bin gui -- -f&
GUI_PID=$!
cargo run --release --bin audio_engine &
AUDIO_ENGINE_PID=$!
wait -n "$JACK_PID" "$AUDIO_ENGINE_PID" "$GUI_PID"
kill "$JACK_PID" "$AUDIO_ENGINE_PID" "$GUI_PID"
cargo run --release --bin gui -- -f &
GUI_PID=$!
wait -n $JACK_PID $AUDIO_ENGINE_PID $GUI_PID
killall qjackctl jackd audio_engine gui cargo
sleep 10
done