Bug#274404: marked as done (exim4-config: after reconfiguration, does not restart daemon if it was stopped)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 18 Jan 2005 06:03:09 -0800


Your message dated Tue, 18 Jan 2005 14:51:30 +0100
with message-id <20050118135130.GH2957@downhill.at.eu.org>
and subject line Bug#274404: exim4-config: after reconfiguration, does not restart daemon if it was stopped
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 1 Oct 2004 16:32:44 +0000
>From danilopiazza@libero.it Fri Oct 01 09:32:44 2004
Return-path: <danilopiazza@libero.it>
Received: from smtp2.libero.it [193.70.192.52] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CDQKq-0003pt-00; Fri, 01 Oct 2004 09:32:44 -0700
Received: from localhost (172.16.1.80) by smtp2.libero.it (7.0.027-DD01)
        id 40C7347601717661 for submit@bugs.debian.org; Fri, 1 Oct 2004 18:32:25 +0200
Received: from desktop (151.46.141.101) by smtp2.libero.it (7.0.027-DD01)
        id 40CB2A080481933F; Fri, 1 Oct 2004 18:32:25 +0200
Received: from danilo by desktop with local (Exim 4.34)
	id 1CDQKH-000626-Cx; Fri, 01 Oct 2004 18:32:09 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Danilo Piazzalunga <danilopiazza@libero.it>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: exim4-config: after reconfiguration,
 does not restart daemon if it was stopped
X-Mailer: reportbug 2.99.4
Date: Fri, 01 Oct 2004 18:32:08 +0200
Message-Id: <E1CDQKH-000626-Cx@desktop>
Sender: Danilo Piazzalunga <danilopiazza@libero.it>
X-Virus-Scanned: by amavisd-new at libero.it serv2
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: exim4-config
Version: 4.34-6
Severity: minor

Hello,

I noticed that, if the Exim daemon is stopped (e.g. because of a
configuration error), it won't be restarted after reconfiguration.

Example output:

    # /etc/init.d/exim4 stop
    Stopping MTA: exim4.
    # dpkg-reconfigure exim4-config
    [... configuration dialogs ...]
    Reloading exim4 configuration files
    No /usr/sbin/exim4 found running; none killed.
    invoke-rc.d: initscript exim4, action "reload" failed.

I think the problem is that exim4-config.config is assuming that the
daemon is up and running. Maybe it should either
 - try to restart if reloading fails, or
 - check if the daemon is running, and act accordingly.

Here is the point which causes the failure. It is located at the very
bottom of exim/debian/exim4-config.config:

    if [ "$1" = "reconfigure" ] && [ -x /etc/init.d/exim4 ] &&\
            command -v invoke-rc.d >/dev/null 2>&1; then
            invoke-rc.d exim4 reload || true
    fi

Best Regards,
	    Danilo


[All the clutter included by reportbug follows...]

-- Package-specific info:
Exim version 4.34 #1 built 11-Sep-2004 12:26:50
Copyright (c) University of Cambridge 2004
Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (May 26, 2004)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Configuration file is /var/lib/exim4/config.autogenerated

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-686
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8

Versions of packages exim4-config depends on:
ii  adduser                     3.59         Add and remove users and groups
ii  debconf [debconf-2.0]       1.4.38       Debian configuration management sy
ii  passwd                      1:4.0.3-30.1 Change and administer password and

-- debconf information excluded

---------------------------------------
Received: (at 274404-done) by bugs.debian.org; 18 Jan 2005 13:51:50 +0000
>From ametzler@debian.org Tue Jan 18 05:51:50 2005
Return-path: <ametzler@debian.org>
Received: from m26s25.vlinux.de [83.151.30.59] ([NmYEblJcqUHTqAHz1dm1qt/5XjOnMu2o])
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Cqtlu-0007AU-00; Tue, 18 Jan 2005 05:51:50 -0800
Received: from m-134-246.adsl.univie.ac.at ([131.130.134.246])
	by m26s25.vlinux.de with asmtp (Exim 4.34)
	id 1Cqtmc-0006Gk-0a
	for 274404-done@bugs.debian.org; Tue, 18 Jan 2005 13:52:54 +0000
Received: from ametzler by downhill.univie.ac.at with local (cert-ver=0) (Exim 4.43)
	id 1Cqtla-0007S3-2y
	for 274404-done@bugs.debian.org; Tue, 18 Jan 2005 14:51:30 +0100
Date: Tue, 18 Jan 2005 14:51:30 +0100
From: Andreas Metzler <ametzler@debian.org>
To: 274404-done@bugs.debian.org
Subject: Re: Bug#274404: exim4-config: after reconfiguration, does not restart daemon if it was stopped
Message-ID: <20050118135130.GH2957@downhill.at.eu.org>
References: <E1CDQKH-000626-Cx@desktop>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1CDQKH-000626-Cx@desktop>
X-GPG-Fingerprint: BCF7 1345 BE42 B5B8 1A57  EE09 1D33 9C65 8B8D 7663
User-Agent: Mutt/1.5.6+20040907i
X-Spam-Score: 1.4 (+)
Delivered-To: 274404-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

On 2004-10-01 Danilo Piazzalunga <danilopiazza@libero.it> wrote:
> Package: exim4-config
> Version: 4.34-6
> Severity: minor

> Hello,

> I noticed that, if the Exim daemon is stopped (e.g. because of a
> configuration error), it won't be restarted after reconfiguration.

> Example output:

>     # /etc/init.d/exim4 stop
>     Stopping MTA: exim4.
>     # dpkg-reconfigure exim4-config
>     [... configuration dialogs ...]
>     Reloading exim4 configuration files
>     No /usr/sbin/exim4 found running; none killed.
>     invoke-rc.d: initscript exim4, action "reload" failed.
[...]

This is fixed in 4.43-4 by this change:
  * Some changes (most notably changing the interfaces exim listens on)
    require restarting exim instead of just sending HUP. Change documentation
    and exim4-config.config accordingly. (Closes: #290945)

We now use "invoke-rc.d exim4 restart" instead of "invoke-rc.d exim4
reload", which will start a exim daemon if none was running before.
                cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/