From bbd9f7852baf8dee6c50085374ef8e73dafc0e3f Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Sun, 24 Nov 2013 20:11:37 +0100 Subject: [PATCH] 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 --- debian/changelog | 5 ++++- debian/rules | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 7b3d2a8..4b03b7d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sun, 24 Nov 2013 19:41:22 +0100 + -- Laurent Bigonville Sun, 24 Nov 2013 20:06:43 +0100 nut (2.6.5-4) unstable; urgency=low diff --git a/debian/rules b/debian/rules index 19cbcea..25c1779 100755 --- a/debian/rules +++ b/debian/rules @@ -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))