debian/rules: Alias systemd nut-monitor service file to nut-client to prevent it from running twice

This commit is contained in:
Laurent Bigonville 2013-01-25 23:17:36 +01:00
parent 715368e54f
commit 853f3503ce
2 changed files with 8 additions and 1 deletions

4
debian/changelog vendored
View file

@ -6,6 +6,8 @@ nut (2.6.5-2) UNRELEASED; urgency=low
* Restore proper SELinux context for runtime created /var/run/nut directory
* debian/control: Fix typo in package description
* debian/watch: Update watch file URL (Thanks to Bart Martens)
* debian/rules: Alias systemd nut-monitor service file to nut-client to
prevent it from running twice
[ Sébastien Villemot ]
* debian/nut-client.preinst: revert /etc/nut/nut.conf mangling done by older
@ -18,7 +20,7 @@ nut (2.6.5-2) UNRELEASED; urgency=low
* Also remove /etc/init.d/nut in nut-client postinst. Thanks to
Laurent Bigonville for the hint.
-- Laurent Bigonville <bigon@debian.org> Sun, 13 Jan 2013 17:36:13 +0100
-- Laurent Bigonville <bigon@debian.org> Fri, 25 Jan 2013 23:13:51 +0100
nut (2.6.5-1) experimental; urgency=low

5
debian/rules vendored
View file

@ -79,6 +79,11 @@ ifeq (linux,$(DEB_HOST_ARCH_OS))
$(CURDIR)/debian/nut-server/lib/systemd/system/nut-driver.service
install -m 644 -D $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/systemd/system/nut-server.service \
$(CURDIR)/debian/nut-server/lib/systemd/system/nut-server.service
# This is needed to avoid services to be started twice (systemd and LSB)
mkdir -p $(CURDIR)/debian/nut-client/etc/systemd/system/
ln -s /lib/systemd/system/nut-monitor.service \
$(CURDIR)/debian/nut-client/etc/systemd/system/nut-client.service
endif
common-install-indep::