Your message dated Tue, 12 Apr 2005 15:52:52 +0200
with message-id <[EMAIL PROTECTED]>
and subject line autofs-ldap startup doesn't handle multiple instances properly
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; 25 Aug 2004 11:50:50 +0000
>From [EMAIL PROTECTED] Wed Aug 25 04:50:50 2004
Return-path: <[EMAIL PROTECTED]>
Received: from master.debian.org [146.82.138.7] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1BzwIk-00065x-00; Wed, 25 Aug 2004 04:50:50 -0700
Received: from viefep15-int.chello.at [213.46.255.19] 
        by master.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1BzwIi-0003IA-00; Wed, 25 Aug 2004 06:50:48 -0500
Received: from mail.zt-consulting.com ([213.47.255.242])
          by viefep15-int.chello.at
          (InterMail vM.6.01.03.04 201-2131-111-106-20040729) with ESMTP
          id <[EMAIL PROTECTED]>
          for <[EMAIL PROTECTED]>; Wed, 25 Aug 2004 13:50:41 +0200
Received: from localhost (S01.thnet [127.0.0.1])
        by mail.zt-consulting.com (Postfix) with ESMTP id 46035FAC6
        for <[EMAIL PROTECTED]>; Wed, 25 Aug 2004 13:50:41 +0200 (CEST)
Received: from L01.thnet (L01.thnet [192.168.0.240])
        by mail.zt-consulting.com (Postfix) with ESMTP id E7DECFAC5
        for <[EMAIL PROTECTED]>; Wed, 25 Aug 2004 13:50:40 +0200 (CEST)
Date: Wed, 25 Aug 2004 13:50:40 +0200 (CEST)
From: Michael Tautschnig <[EMAIL PROTECTED]>
X-X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: autofs-ldap startup doesn't handle multiple instances properly
Message-ID: <[EMAIL PROTECTED]>
X-GPG-FINGRPRINT: 4673 48C8 5F3A 5A9B 2B0D  169E BF1E 9D1F 76D5 2AC4
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Scanned: by AMaViS snapshot-20020222
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
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: autofs-ldap
Version: 3.9.99-4.0.0pre10-16

The startup-script for autofs-ldap creates the pidfile-names from the name
of the directory - this is not necessarily unique. Thus one cannot start
multiple instances of autofs.

Furthermore "killall /usr/sbin/automount" only kills one instance -
calling it multiple times does the job. The appended diff solves these
issues:

--- autofs      2004-08-25 13:42:27.000000000 +0200
+++ /etc/init.d/autofs  2004-08-25 13:41:49.000000000 +0200
@@ -519,6 +519,7 @@
 #
 case "$1" in
     start)
+       local i=0
        echo -n 'Starting automounter:'
        getmounts | while read cmd args
        do
@@ -530,15 +531,18 @@
                if [ ! -d /var/run/autofs ]; then
                        mkdir /var/run/autofs
                fi
-               pidfile=/var/run/autofs/`echo $mnt | sed
's,_,__,g;s,/,_:,g'`.pid
+               pidfile=/var/run/autofs/${i}`echo $mnt | sed
's,_,__,g;s,/,_:,g'`.pid
                start-stop-daemon --start --pidfile $pidfile --quiet \
                        --exec $DAEMON -- --pid-file=$pidfile $opt $mnt
$rest
+               i=`expr $i + 1`
        done
        echo "."
        ;;
     stop)
        echo -n 'Stopping automounter: '
-       start-stop-daemon --stop --quiet --signal USR2 --exec $DAEMON
+       for file in /var/run/autofs/*.pid; do
+           start-stop-daemon --stop --quiet --signal USR2 --exec $DAEMON
+       done
        any=0
        for file in /var/run/autofs/*.pid
        do



--
Regards,
Michael

---------------------------------------
Received: (at 267975-done) by bugs.debian.org; 12 Apr 2005 13:53:41 +0000
>From [EMAIL PROTECTED] Tue Apr 12 06:53:41 2005
Return-path: <[EMAIL PROTECTED]>
Received: from viefep11-int.chello.at (viefep19-int.chello.at) [213.46.255.27] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DLLpl-0000yA-00; Tue, 12 Apr 2005 06:53:41 -0700
Received: from mail.zt-consulting.com ([213.47.255.242])
          by viefep19-int.chello.at
          (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP
          id <[EMAIL PROTECTED]>
          for <[EMAIL PROTECTED]>;
          Tue, 12 Apr 2005 15:53:09 +0200
Received: from localhost (localhost [127.0.0.1])
        by mail.zt-consulting.com (Postfix) with ESMTP id 518A7FA46
        for <[EMAIL PROTECTED]>; Tue, 12 Apr 2005 15:53:09 +0200 (CEST)
Received: from localhost (fish.informatik.tu-muenchen.de [131.159.22.21])
        by mail.zt-consulting.com (Postfix) with ESMTP id 96EA9FA37
        for <[EMAIL PROTECTED]>; Tue, 12 Apr 2005 15:53:08 +0200 (CEST)
Date: Tue, 12 Apr 2005 15:52:52 +0200
From: Michael Tautschnig <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: autofs-ldap startup doesn't handle multiple instances properly
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
X-Virus-Scanned: by AMaViS snapshot-20020222
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-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Using "multi" in the LDAP directory's entries handles the situation properly.
I'm thus closing the bug.

Thanks,
Michael Tautschnig


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to