From d090243b53e5cb81fbf3ec3595689e69e8b5bfa5 Mon Sep 17 00:00:00 2001 From: Bas Schouten Date: Mon, 30 Jan 2023 05:09:59 +0100 Subject: [PATCH] Some minor fixes to compile and function on Raspberry Pi0W. --- MQTTThermostat/maindaemon.cpp | 1 + mqttthermostat.service | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.3