diff --git a/wb-heat-control.service b/wb-heat-control.service index 9912de1..4773288 100644 --- a/wb-heat-control.service +++ b/wb-heat-control.service @@ -1,10 +1,11 @@ [Unit] -Description=Wirenboard Temperature Monitor +Description=Wirenboard Temperature Control After=network.target mosquitto.service [Service] Type=simple -ExecStart=/usr/local/bin/wb-temperature-monitor.py +WorkingDirectory=/opt/wb_heat_control +ExecStart=/opt/wb_heat_control/heat_control.py Restart=on-failure RestartSec=10 User=root