From owner-freebsd-stable@FreeBSD.ORG Wed Jul 7 02:42:21 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F08721065670 for ; Wed, 7 Jul 2010 02:42:21 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mx1.freebsd.org (Postfix) with ESMTP id 85F978FC15 for ; Wed, 7 Jul 2010 02:42:21 +0000 (UTC) Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta09.westchester.pa.mail.comcast.net with comcast id eqfd1e00127AodY59qiMUE; Wed, 07 Jul 2010 02:42:21 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta19.westchester.pa.mail.comcast.net with comcast id eqiK1e0093LrwQ23fqiK4m; Wed, 07 Jul 2010 02:42:21 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id F41269B425; Tue, 6 Jul 2010 19:42:17 -0700 (PDT) Date: Tue, 6 Jul 2010 19:42:17 -0700 From: Jeremy Chadwick To: Daniel O'Connor Message-ID: <20100707024217.GA77748@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Stable , freebsd-ports@freebsd.org Subject: Re: MIMEDefang not starting on reboot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2010 02:42:22 -0000 On Wed, Jul 07, 2010 at 08:35:28AM +0930, Daniel O'Connor wrote: > Does anyone else see this? > I have 2 (of 2) amd64 8.x systems which don't start MIMEDefang on reboot properly, I get this.. > > Jul 7 06:34:58 cain mimedefang-multiplexor[1747]: Starting slave 3 (pid 41198) (1 running): Bringing slaves up to minSlaves (2) > Jul 7 06:34:58 cain mimedefang-multiplexor[1747]: Slave 3 stderr: Can't load '/usr/local/lib/perl5/5.10.1/mach/auto/File/Glob/Glob.so' for module File::Glob: /usr/local/lib/perl5/5.10.1/mach/auto/File/Glob/Glob.so: mmap of entire address space failed: Cannot allocate memory at /usr/local/lib/perl5/5.10.1/mach/XSLoader.pm line 70. at /usr/local/lib/perl5/5.10.1/mach/File/Glob.pm line 96 Compilation failed in require at /usr/local/bin/mimedefang.pl line 3239. BEGIN failed--compilation aborted at /usr/local/bin/mimedefang.pl line 3239. > > Restarting it manually (ie /usr/local/etc/rc.d/mimedefang.sh restart) after a reboot fixes it.. > > Also I think it would be nice if this patch were added to the port.. > > --- /usr/local/etc/rc.d/mimedefang.sh-dist 2010-04-07 10:30:46.586067014 +0930 > +++ /usr/local/etc/rc.d/mimedefang.sh 2010-05-01 13:47:47.340517685 +0930 > @@ -316,7 +319,7 @@ > rm -f $MX_SOCKET > /dev/null 2>&1 > rm -f $SOCKET > /dev/null 2>&1 > > - if [ "$1" = "wait" ] ; then > + if [ "wait" = "wait" ] ; then > printf "Waiting for daemons to exit." > WAITPID="" > test -f $PID && WAITPID=`cat $PID` > > Otherwise restart is useless because it starts MD without waiting for the old one to stop and it doesn't work :( This should probably go to freebsd-ports not -stable, since both mimedefang and perl are ports things. CC'ing. Also, that patch doesn't look correct, or you got your diff arguments backwards (e.g. change should be fixing the wait=wait comparison to use $1=wait). -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |