@cryptotaxi247 / netdata-1 / commits / 9a07f50ec

Install the correct service file based on systemd version (#17159)

--------- Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>

Tasos Katsoulas committed Mar 14, 2024 at 13:37 UTC 9a07f50ec8373b2ff1b9506e7768e2a36aa5259a
1 file changed +3 -3
contrib/debian/rules
+3 -3
@@ -11,10 +11,10 @@ BASE_CONFIG = system/netdata.conf
11
12 SYSTEMD_VERSION = $(shell /bin/sh -c "systemd --version 2>&1 | head -n 1 | cut -f 2 -d ' '")
13
14 -ifeq ($(shell test $(SYSTEMD_VERSION) -ge 235 && echo "1"), 1)
15 -SYSTEMD_UNIT = $(BUILDDIR)/system/systemd/netdata.service.v235
16 -else
14 +ifeq ($(shell test $(SYSTEMD_VERSION) -gt 235 && echo "1"), 1)
15 SYSTEMD_UNIT = $(BUILDDIR)/system/systemd/netdata.service
16 +else
17 +SYSTEMD_UNIT = $(BUILDDIR)/system/systemd/netdata.service.v235
18 endif
19
20 ifeq ($(shell test ${DEB_TARGET_ARCH} != "amd64" && echo "1"), 1)