From 7faa0ce18080186e5208c53fa0fc64d577889006 Mon Sep 17 00:00:00 2001 From: lostanlen Date: Thu, 17 Mar 2022 19:51:05 +0100 Subject: [PATCH] add monitor runner (#74) --- pyroengine/pi_utils/pi_zeros/monitor_runner.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pyroengine/pi_utils/pi_zeros/monitor_runner.sh diff --git a/pyroengine/pi_utils/pi_zeros/monitor_runner.sh b/pyroengine/pi_utils/pi_zeros/monitor_runner.sh new file mode 100644 index 00000000..1f5a04e8 --- /dev/null +++ b/pyroengine/pi_utils/pi_zeros/monitor_runner.sh @@ -0,0 +1,5 @@ +#!/bin/bash +until python3 /home/pi/pi_zeros/runner.py; do + echo "'runner.py' crashed with exit code $?. Restarting..." >&2 + sleep 1 +done \ No newline at end of file