debian/rules: Alias systemd nut-monitor service file to nut-client to prevent it from running twice
This commit is contained in:
parent
715368e54f
commit
853f3503ce
2 changed files with 8 additions and 1 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -6,6 +6,8 @@ nut (2.6.5-2) UNRELEASED; urgency=low
|
||||||
* Restore proper SELinux context for runtime created /var/run/nut directory
|
* Restore proper SELinux context for runtime created /var/run/nut directory
|
||||||
* debian/control: Fix typo in package description
|
* debian/control: Fix typo in package description
|
||||||
* debian/watch: Update watch file URL (Thanks to Bart Martens)
|
* 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 ]
|
[ Sébastien Villemot ]
|
||||||
* debian/nut-client.preinst: revert /etc/nut/nut.conf mangling done by older
|
* 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
|
* Also remove /etc/init.d/nut in nut-client postinst. Thanks to
|
||||||
Laurent Bigonville for the hint.
|
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
|
nut (2.6.5-1) experimental; urgency=low
|
||||||
|
|
||||||
|
|
5
debian/rules
vendored
5
debian/rules
vendored
|
@ -79,6 +79,11 @@ ifeq (linux,$(DEB_HOST_ARCH_OS))
|
||||||
$(CURDIR)/debian/nut-server/lib/systemd/system/nut-driver.service
|
$(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 \
|
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
|
$(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
|
endif
|
||||||
|
|
||||||
common-install-indep::
|
common-install-indep::
|
||||||
|
|
Loading…
Reference in a new issue