debian/rules: Mask ups-monitor LSB initscript

debian/rules: Mask ups-monitor, this is not a real LSB initscript but it's a
symlink to the nut-client one. The purpose of this was to offer a common
interface to shutdown the UPS in case of power loss, this is not necessary with
systemd as this functionality is handeled by the
/lib/systemd/system-shutdown/nutshutdown script now.
This commit is contained in:
Laurent Bigonville 2017-01-28 21:54:19 +01:00
parent d31c6dcb9b
commit 08d39e662c
2 changed files with 7 additions and 1 deletions

7
debian/changelog vendored
View File

@ -3,8 +3,13 @@ nut (2.7.4-6) UNRELEASED; urgency=medium
* debian/nut-server.postinst: The udevd process is called systemd-udevd for
quite sometimes already, properly detect whether it's running or not, this
should fix the devices permissions for USB UPS's (LP: #1540008)
* debian/rules: Mask ups-monitor, this is not a real LSB initscript but it's
a symlink to the nut-client one. The purpose of this was to offer a common
interface to shutdown the UPS in case of power loss, this is not necessary
with systemd as this functionality is handeled by the
/lib/systemd/system-shutdown/nutshutdown script now.
-- Laurent Bigonville <bigon@debian.org> Thu, 26 Jan 2017 09:05:15 +0100
-- Laurent Bigonville <bigon@debian.org> Sat, 28 Jan 2017 21:37:38 +0100
nut (2.7.4-5) unstable; urgency=medium

1
debian/rules vendored
View File

@ -102,6 +102,7 @@ ifeq (linux,$(DEB_HOST_ARCH_OS))
# Add a symlink to mask the LSB initscript
ln -s nut-monitor.service $(CURDIR)/debian/nut-client/lib/systemd/system/nut-client.service
ln -s /dev/null $(CURDIR)/debian/nut-client/lib/systemd/system/ups-monitor.service
# Install tmpfiles config file to create /run/nut directory
install -m 644 -D $(CURDIR)/debian/nut-client.tmpfiles \