Your message dated Sun, 11 Sep 2005 16:32:04 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#327601: init script can start many dirmngr instances
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; 11 Sep 2005 10:39:43 +0000
>From [EMAIL PROTECTED] Sun Sep 11 03:39:43 2005
Return-path: <[EMAIL PROTECTED]>
Received: from charon.hkfree.org [212.71.131.229] (postfix)
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EEPFO-0004Ls-00; Sun, 11 Sep 2005 03:39:42 -0700
Received: from localhost (localhost.localdomain [127.0.0.1])
by charon.hkfree.org (Postfix) with ESMTP id DF84C2BBC9
for <[EMAIL PROTECTED]>; Sun, 11 Sep 2005 12:39:38 +0200 (CEST)
Received: from charon.hkfree.org ([127.0.0.1])
by localhost (charon [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 32173-02; Sun, 11 Sep 2005 12:39:32 +0200 (CEST)
Received: from localhost.localdomain (martink.JNet.hkfree.org [10.107.3.77])
by charon.hkfree.org (Postfix) with ESMTP id 174462BBA2;
Sun, 11 Sep 2005 12:39:29 +0200 (CEST)
Received: by localhost.localdomain (Postfix, from userid 1000)
id BC05D23CF9; Sun, 11 Sep 2005 12:39:28 +0200 (CEST)
Date: Sun, 11 Sep 2005 12:39:28 +0200
From: Martin Kourim <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: init script can start many dirmngr instances
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Reportbug-Version: 3.17
User-Agent: Mutt/1.5.9i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hkfree.org
Delivered-To: [EMAIL PROTECTED]
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-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: dirmngr
Version: 0.9.2-1
Severity: normal
Hi,
init script can start multiple instances of dirmngr.
# pgrep dirmngr
# for i in $(seq 1 10); do /etc/init.d/dirmngr start >/dev/null; sleep1; done
# pgrep dirmngr
6578
6608
6637
6669
6698
# cat /var/run/dirmngr.pid
#
There is a bug in the way how init script manages /var/run/dirmngr.pid file.
With the first execution, it adds PID number to /var/run/dirmngr.pid.
With the second execution, start-stop-daemon recognizes that dirmngr
is already running and exists silently. But the init script does
echo "$pid" >$PIDFILE
$pid is empty, so it only erase pid file.
And with the third execution, start-stop-daemon starts another instance
of dirmngr (because pid file is empty).
There should be something like
[ -n "$pid" ] && { echo "$pid" >$PIDFILE || return 1; }
instead of
echo "$pid" >$PIDFILE
Martin Kourim
-- System Information:
Debian Release: testing/unstable
APT prefers testing-proposed-updates
APT policy: (990, 'testing-proposed-updates'), (990, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.13-ck2-1-k7
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)
Versions of packages dirmngr depends on:
ii adduser 3.67 Add and remove users and groups
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libgcrypt11 1.2.1-4 LGPL Crypto library - runtime libr
ii libgpg-error0 1.1-4 library for common error values an
ii libksba8 0.9.11-1 X.509 and CMS support library
ii libldap2 2.1.30-11 OpenLDAP libraries
ii libpth2 2.0.1-2.1 The GNU Portable Threads
ii lsb-base 3.0-5 Linux Standard Base 3.0 init scrip
dirmngr recommends no packages.
-- no debconf information
---------------------------------------
Received: (at 327601-done) by bugs.debian.org; 11 Sep 2005 14:32:41 +0000
>From [EMAIL PROTECTED] Sun Sep 11 07:32:41 2005
Return-path: <[EMAIL PROTECTED]>
Received: from pop.gmx.de (mail.gmx.net) [213.165.64.20]
by spohr.debian.org with smtp (Exim 3.36 1 (Debian))
id 1EESsr-0005vF-00; Sun, 11 Sep 2005 07:32:41 -0700
Received: (qmail invoked by alias); 11 Sep 2005 14:32:10 -0000
Received: from dsl-082-083-225-255.arcor-ip.net (EHLO colt.pezone.net)
[82.83.225.255]
by mail.gmx.net (mp011) with SMTP; 11 Sep 2005 16:32:10 +0200
X-Authenticated: #495269
From: Peter Eisentraut <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Bug#327601: init script can start many dirmngr instances
Date: Sun, 11 Sep 2005 16:32:04 +0200
User-Agent: KMail/1.8.1
References: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <[EMAIL PROTECTED]>
X-Y-GMX-Trusted: 0
Delivered-To: [EMAIL PROTECTED]
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-Level:
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
Version: 0.9.2-2
This is fixed in the latest package.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]