feat: added run.sh script

This commit is contained in:
2020-10-31 10:39:24 +01:00
parent f5b7ee227f
commit 0b08d4cf91

18
run.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
python3 app.py &
PID_APP=$!
python3 cameraworker.py &
PID_CAM=$!
python3 tickworker.py &
PID_TICK=$!
function terminate() {
kill $PID_APP $PID_CAM $PID_TICK
}
trap terminate INT
wait $PID_APP $PID_CAM $PID_TICK