[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#986322: marked as done (sendmail is stopped during upgrades)



Your message dated Fri, 16 Apr 2021 20:47:45 +0200
with message-id <27baa06e-9a17-8374-16da-25c3b6533eec@debian.org>
and subject line Re: Bug#986322: Bug#986129: unblock: sendmail/8.15.2-22
has caused the Debian Bug report #986322,
regarding sendmail is stopped during upgrades
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
986322: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986322
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package sendmail

sendmail does not cleanly restart after upgrading from buster because
the binaries were moved from /usr/lib/sm.bin to /usr/libexec/sendmail.
So let's stop sendmail in preinst if upgrading from a version with the
old layout. (To minimize downtime sendmail is usually not stopped before
the new version gets unpacked, but only restarted in postinst.)

unblock sendmail/8.15.2-22

Andreas
>From b91969214360c466be10f2326ba8ac73dd3ed95d Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <anbe@debian.org>
Date: Tue, 16 Mar 2021 16:04:33 +0100
Subject: [PATCH] stop sendmail before binaries get moved from /usr/lib/sm.bin/
 to /usr/libexec/sendmail/

---
 debian/changelog               | 8 ++++++++
 debian/sendmail-bin.preinst.in | 5 +++++
 2 files changed, 13 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4438fa8..fb8ca3b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sendmail (8.15.2-22) unstable; urgency=medium
+
+  * QA upload.
+  * Stop sendmail before binaries get moved from /usr/lib/sm.bin/ to
+    /usr/libexec/sendmail/.
+
+ -- Andreas Beckmann <anbe@debian.org>  Tue, 16 Mar 2021 16:04:16 +0100
+
 sendmail (8.15.2-21) unstable; urgency=medium
 
   * QA upload.
diff --git a/debian/sendmail-bin.preinst.in b/debian/sendmail-bin.preinst.in
index f4dda47..409b650 100644
--- a/debian/sendmail-bin.preinst.in
+++ b/debian/sendmail-bin.preinst.in
@@ -14,6 +14,11 @@ if [ "$1" = "upgrade" ]; then
 		if [ -f /etc/cron.d/sendmail ]; then
 			echo "#preinst" > @sysconfdir@/cron.d/sendmail;
 			fi;
+
+	if dpkg --compare-versions "$2" lt-nl "8.15.2-19" ; then
+		# stop sendmail before binaries get moved from /usr/lib/sm.bin/ to /usr/libexec/sendmail/
+		invoke-rc.d sendmail stop
+	fi
 fi
 
 #DEBHELPER#
-- 
2.20.1


--- End Message ---
--- Begin Message ---
Hi,

On 13-04-2021 11:27, Justin B Rye wrote:
>   <title>sendmail downtime during upgrade</title>
>   <para>
>     In contrast to normal upgrades of
>     <systemitem role=package>sendmail</systemitem>, during the upgrade of
>     buster to bullseye the sendmail service will be stopped, causing more
>     downtime than usual. For generic advice on reducing downtime see
>     <xref linkend="services-downtime"/>.
>   </para>

committed.

Paul

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---

Reply to: