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