From 0b08d4cf91dd749e9f076ac7272c94707612610d Mon Sep 17 00:00:00 2001 From: Rick Rongen Date: Sat, 31 Oct 2020 10:39:24 +0100 Subject: [PATCH] feat: added run.sh script --- run.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 run.sh 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