added service file
This commit is contained in:
10
mqtt/tempHumidSensor.service
Normal file
10
mqtt/tempHumidSensor.service
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Script for the Temp & Humidity sensors through MQTT
|
||||||
|
After=multi-user.target
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/python3 /home/pi/homeassistantPi/mqtt/tempSensor.py
|
||||||
|
User=pi
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=1s
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user