Better restart
This commit is contained in:
parent
4eea572c35
commit
a89140edc4
12
autorun.sh
12
autorun.sh
@ -1,16 +1,24 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
git stash
|
git stash
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
qjackctl /start-server &
|
qjackctl /start-server &
|
||||||
JACK_PID=$!
|
JACK_PID=$!
|
||||||
|
|
||||||
|
sleep 5
|
||||||
|
|
||||||
cargo run --release --bin audio_engine &
|
cargo run --release --bin audio_engine &
|
||||||
AUDIO_ENGINE_PID=$!
|
AUDIO_ENGINE_PID=$!
|
||||||
|
|
||||||
cargo run --release --bin gui -- -f &
|
cargo run --release --bin gui -- -f &
|
||||||
GUI_PID=$!
|
GUI_PID=$!
|
||||||
|
|
||||||
wait -n "$JACK_PID" "$AUDIO_ENGINE_PID" "$GUI_PID"
|
wait -n $JACK_PID $AUDIO_ENGINE_PID $GUI_PID
|
||||||
kill "$JACK_PID" "$AUDIO_ENGINE_PID" "$GUI_PID"
|
|
||||||
|
killall qjackctl jackd audio_engine gui cargo
|
||||||
|
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
Loading…
x
Reference in New Issue
Block a user