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