From cd23749cf7b0caa0207c16803f01704a9c8db623 Mon Sep 17 00:00:00 2001 From: Denis NUTIU Date: Sun, 12 Jun 2022 16:38:04 +0300 Subject: [PATCH] Ensure service restart on failure --- bme680-homekit.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bme680-homekit.service b/bme680-homekit.service index 4bdc434..d69a76b 100644 --- a/bme680-homekit.service +++ b/bme680-homekit.service @@ -3,6 +3,8 @@ Description=Bme680 Homekit service After=local-fs.target network-online.target [Service] +Restart=on-failure +RestartSec=5s User=pi ExecStart=/usr/bin/python3 /home/pi/bme680-homekit/main.py