Add working directory to bme680-homekit.service
This commit is contained in:
parent
e35f2207b8
commit
33b3432787
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue