From 33b343278747dbc750162111f342b10b7d79eed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Tue, 30 Jan 2024 11:54:08 +0200 Subject: [PATCH] Add working directory to bme680-homekit.service --- sensors/bme680-homekit.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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