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

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::