Ensure service restart on failure

This commit is contained in:
Denis-Cosmin Nutiu 2022-06-12 16:38:04 +03:00
parent f32562debe
commit cd23749cf7

View file

@ -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