Add working directory to bme680-homekit.service

This commit is contained in:
Denis-Cosmin Nutiu 2024-01-30 11:54:08 +02:00 committed by GitHub
parent e35f2207b8
commit 33b3432787
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,10 +3,11 @@ Description=Bme680 Homekit service
After=local-fs.target network-online.target After=local-fs.target network-online.target
[Service] [Service]
WorkingDirectory=/home/pi/bme680-homekit/
Restart=on-failure Restart=on-failure
RestartSec=5s RestartSec=5s
User=pi User=pi
ExecStart=/usr/bin/python3 /home/pi/bme680-homekit/sensors/main.py ExecStart=/usr/bin/python3 /home/pi/bme680-homekit/sensors/main.py
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target