diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..5cfd5eb --- /dev/null +++ b/run.sh @@ -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 \ No newline at end of file