From 40efbb1ef4e30d132d1f297a756a3f4b80f72183 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 19 Jun 2023 12:20:35 +0200 Subject: [PATCH] Fix influx systemd env override not working with older systemd Apparently the system unit file for influx is influxdb.service, however, the symlinks in /etc differ and are named influxd.service. While newer systemd versions seem to handle that properly, older ones (debian buster) don't seem to pick up our config if it's named like the symlink instead of the actual unit file --- .../{influxd.service.d => influxdb.service.d}/nymea-env.conf | 0 debian/nymead.install.in | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename data/systemd/{influxd.service.d => influxdb.service.d}/nymea-env.conf (100%) diff --git a/data/systemd/influxd.service.d/nymea-env.conf b/data/systemd/influxdb.service.d/nymea-env.conf similarity index 100% rename from data/systemd/influxd.service.d/nymea-env.conf rename to data/systemd/influxdb.service.d/nymea-env.conf diff --git a/debian/nymead.install.in b/debian/nymead.install.in index a604078d..44020ab4 100644 --- a/debian/nymead.install.in +++ b/debian/nymead.install.in @@ -1,6 +1,6 @@ usr/bin/nymead data/systemd/nymead.service /lib/systemd/system/ -data/systemd/influxd.service.d/nymea-env.conf /etc/systemd/system/influxd.service.d/ +data/systemd/influxdb.service.d/nymea-env.conf /etc/systemd/system/influxdb.service.d/ data/logrotate/nymead /etc/logrotate.d/ data/dbus-1/io.guh.nymead.conf /etc/dbus-1/system.d/ data/dpkg/nymea-upgrade-helper /usr/libexec/