diff --git a/etc/0BUILD b/etc/0BUILD index 28c5ed7..a7b57d1 100644 --- a/etc/0BUILD +++ b/etc/0BUILD @@ -6,6 +6,7 @@ aqhome-data.service aqhome-mqttlog.service aqhome-nodes.service + aqhome-react.service diff --git a/etc/aqhome-react.service b/etc/aqhome-react.service new file mode 100644 index 0000000..130df68 --- /dev/null +++ b/etc/aqhome-react.service @@ -0,0 +1,16 @@ +[Unit] +Description=AqHome React +DefaultDependencies=no +Wants=aqhome-data.service +StartLimitIntervalSec=30 +StartLimitBurst=5 + +[Service] +Type=exec +RemainAfterExit=no +ExecStart=/usr/local/sbin/aqhome-react -p /var/run/aqhome-react.pid -T 0 +Restart=on-failure +RestartSec=5s + +[Install] +WantedBy=multi-user.target