]> git.basschouten.com Git - mqttthermostat.git/commitdiff
Some minor fixes to compile and function on Raspberry Pi0W.
authorBas Schouten <bas@basschouten.com>
Mon, 30 Jan 2023 04:09:59 +0000 (05:09 +0100)
committerBas Schouten <bas@basschouten.com>
Mon, 30 Jan 2023 04:09:59 +0000 (05:09 +0100)
MQTTThermostat/maindaemon.cpp
mqttthermostat.service

index 25706c7fb47504cfccc578ef5f2182488e67a2ec..2073bb0a769064fe5be6b5b0411995d435df6389 100644 (file)
@@ -8,6 +8,7 @@
 #include <stdio.h>
 #include <getopt.h>
 #include <fcntl.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <signal.h>
index 2d74c8362131c431cfb82ff3353bdc1ccc0eea28..a2607c1ecdcc8db74074033117e0817ead607bf6 100644 (file)
@@ -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