From: Bas Schouten Date: Mon, 30 Jan 2023 04:09:59 +0000 (+0100) Subject: Some minor fixes to compile and function on Raspberry Pi0W. X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=d090243b53e5cb81fbf3ec3595689e69e8b5bfa5;p=mqttthermostat.git Some minor fixes to compile and function on Raspberry Pi0W. --- diff --git a/MQTTThermostat/maindaemon.cpp b/MQTTThermostat/maindaemon.cpp index 25706c7..2073bb0 100644 --- a/MQTTThermostat/maindaemon.cpp +++ b/MQTTThermostat/maindaemon.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/mqttthermostat.service b/mqttthermostat.service index 2d74c83..a2607c1 100644 --- a/mqttthermostat.service +++ b/mqttthermostat.service @@ -4,13 +4,12 @@ Description=MQTT Thermostat Service [Service] Type=forking PIDFile=/run/mqttthermostat.pid -ExecStart=/usr/bin/mqttthermostat \ +ExecStart=/usr/local/bin/mqttthermostat \ --conf_file /etc/mqttthermostat.conf \ --log_file /var/log/mqttthermostat.log \ --pid_file /run/mqttthermostat.pid \ --daemon -User=daemoner ExecReload=/bin/kill -HUP $MAINPID [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target