diff --git a/sensors/bme680-homekit.service b/sensors/bme680-homekit.service index 84950df..85cac68 100644 --- a/sensors/bme680-homekit.service +++ b/sensors/bme680-homekit.service @@ -3,10 +3,11 @@ Description=Bme680 Homekit service After=local-fs.target network-online.target [Service] +WorkingDirectory=/home/pi/bme680-homekit/ Restart=on-failure RestartSec=5s User=pi ExecStart=/usr/bin/python3 /home/pi/bme680-homekit/sensors/main.py [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target