Package: rpcbind
Version: 0.2.3-0.5
Severity: normal
Tags: patch

Hi,

please consider using --restart-after-upgrade for
dh_installinit/dh_systemd_enable. Atm, the service is stopped in prerm
and started in postinst. This means there can be a pretty long downtime
during dist upgrades. With socket activation, which is used in systemd,
this doesn't work particularly well, as any incoming request could
trigger a start during upgrades.
--restart-after-upgrade fixes that nicely.

With debhelper compat level 10, --restart-after-upgrade will become the
default behaviour. So once you switch to that compat level, you can drop
this patch again.

Thanks for considering.

Michael


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages rpcbind depends on:
ii  init-system-helpers  1.40~1.gbpee156d
ii  libc6                2.23-1
ii  libsystemd0          230-7
ii  libtirpc1            0.2.5-1
ii  libwrap0             7.6.q-25
ii  lsb-base             9.20160629

rpcbind recommends no packages.

rpcbind suggests no packages.

-- no debconf information
>From 7c8264a9eac62c2bd3b7d66bed3eaff63749c721 Mon Sep 17 00:00:00 2001
From: Michael Biebl <bi...@debian.org>
Date: Wed, 13 Jul 2016 18:56:37 +0200
Subject: [PATCH] Use restart-after-upgrade

This minimises downtime during upgrades and works better for
socket-activated services.
---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 29c0a38..e5195b6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -83,8 +83,8 @@ binary-arch: install
 	dh_systemd_enable
 	dh_installinit --no-start --name rpcbind-boot
 	dh_installinit --no-start --name portmap-wait
-	dh_installinit
-	dh_systemd_start
+	dh_installinit --restart-after-upgrade
+	dh_systemd_start --restart-after-upgrade
 	dh_link
 	dh_strip
 	dh_compress
-- 
2.8.1

Reply via email to