NetBSD Problem Report #45064
From root@netbsd.it Wed Jun 15 08:50:46 2011
Return-Path: <root@netbsd.it>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 507B863C79A
for <gnats-bugs@gnats.NetBSD.org>; Wed, 15 Jun 2011 08:50:46 +0000 (UTC)
Message-Id: <20110615085044.65B2893579@netbsd.it>
Date: Wed, 15 Jun 2011 08:50:44 +0000 (UTC)
From: Stefano Marinelli <stefano@dragas.it>
Reply-To: stefano@dragas.it
To: gnats-bugs@gnats.NetBSD.org
Subject: mail/dovecot2 should alert to restart the service - patch attached
X-Send-Pr-Version: 3.95
>Number: 45064
>Category: pkg
>Synopsis: mail/dovecot2 need to be restarted when upgraded. User should be alerted
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jun 15 08:55:00 +0000 2011
>Last-Modified: Wed Jun 15 09:25:01 +0000 2011
>Originator: Stefano Marinelli
>Release: NetBSD 5.1_STABLE
>Organization:
>Environment:
System: NetBSD netbsd.it 5.1_STABLE NetBSD 5.1_STABLE (DOMU_DRAGAS) #9: Thu Jun 2 07:52:32 UTC 2011 root@netbsd.it:/usr/obj/sys/arch/amd64/compile/DOMU_DRAGAS amd64
Architecture: x86_64
Machine: amd64
>Description:
mail/dovecot2 has two components: a backend and a worker. The worker is launched every time a connection is started, while the backend sits and waits.
When upgrading, a version mismatch between the two occurs and the backend refuses any connection from the worker because of it. User should be
alerted, so I just added a couple of lines to the "MESSAGE" file.
>How-To-Repeat:
Upgrade mail/dovecot2 from a lower (minor) version.
>Fix:
Restarting Dovecot2 after any upgrade. At least, user should be alerted (patch follows):
--- dovecot2.orig/Makefile 2011-06-15 08:38:00.000000000 +0000
+++ dovecot2/Makefile 2011-06-15 08:40:52.000000000 +0000
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.12 2011/06/10 21:57:08 obache Exp $
DISTNAME= dovecot-2.0.13
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://www.dovecot.org/releases/2.0/
--- dovecot2.orig/MESSAGE 2011-06-15 08:38:00.000000000 +0000
+++ dovecot2/MESSAGE 2011-06-15 08:40:11.000000000 +0000
@@ -11,4 +11,7 @@ When upgrading from Dovecot 1.2.x, you c
For more information, see http://wiki2.dovecot.org/Upgrading/2.0
+Please, remember to restart Dovecot after any upgrade. Otherwise, it will
+complain about a version mismatch and refuse any connection.
+
===========================================================================
>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/45064: mail/dovecot2 should alert to restart the service -
patch attached
Date: Wed, 15 Jun 2011 18:21:18 +0900
I feel this is not dovecot2 specific matter.
Generally, following step is safe for updating package:
1. stop service
2. upgrade package
3. start service
(I know some services will not stop cleanly if binaries/settings have mismatch
with running environments)
--
OBATA Akio / obache@NetBSD.org
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.