debian/rules: Drop static ordering for the initscripts and pass --restart-after-upgrade option to dh_installinit and dh_systemd_start to minimize the downtime of the daemons

This commit is contained in:
Laurent Bigonville 2013-11-24 20:11:37 +01:00
parent c68443d795
commit bbd9f7852b
2 changed files with 8 additions and 3 deletions

5
debian/changelog vendored
View File

@ -16,8 +16,11 @@ nut (2.7.1-1) UNRELEASED; urgency=low
/etc/killpower
* debian/nut-client.lintian-overrides: Add override for
systemd-no-service-for-init-script ups-monitor
* debian/rules: Drop static ordering for the initscripts and pass
--restart-after-upgrade option to dh_installinit and dh_systemd_start to
minimize the downtime of the daemons
-- Laurent Bigonville <bigon@debian.org> Sun, 24 Nov 2013 19:41:22 +0100
-- Laurent Bigonville <bigon@debian.org> Sun, 24 Nov 2013 20:06:43 +0100
nut (2.6.5-4) unstable; urgency=low

6
debian/rules vendored
View File

@ -102,8 +102,10 @@ common-install-indep::
binary-install/nut-monitor::
dh_python2 -pnut-monitor
DEB_DH_INSTALLINIT_ARGS_nut-server := --init-script=nut-server -- start 50 2 3 4 5 . stop 51 0 1 6 .
DEB_DH_INSTALLINIT_ARGS_nut-client := --init-script=nut-client -- start 51 2 3 4 5 . stop 50 0 1 6 .
DEB_DH_INSTALLINIT_ARGS_nut-server := --init-script=nut-server --restart-after-upgrade
DEB_DH_INSTALLINIT_ARGS_nut-client := --init-script=nut-client --restart-after-upgrade
DEB_DH_SYSTEMD_START_ARGS_nut-server := --restart-after-upgrade
DEB_DH_SYSTEMD_START_ARGS_nut-client := --restart-after-upgrade
DEB_DH_COMPRESS_ARGS_nut-doc := -X.pdf
ifeq (linux,$(DEB_HOST_ARCH_OS))