Ensure service restart on failure
This commit is contained in:
parent
f32562debe
commit
cd23749cf7
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue