From owner-freebsd-apache@FreeBSD.ORG Thu Jan 2 14:46:53 2014 Return-Path: Delivered-To: apache@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DEF8092F for ; Thu, 2 Jan 2014 14:46:53 +0000 (UTC) Received: from pi.nmdps.net (pi.nmdps.net [109.61.102.5]) by mx1.freebsd.org (Postfix) with ESMTP id 9E45C1F96 for ; Thu, 2 Jan 2014 14:46:53 +0000 (UTC) Received: from pi.nmdps.net (localhost [127.0.0.1]) (Authenticated sender: krichy@cflinux.hu) by pi.nmdps.net (Postfix) with ESMTPSA id 2C2491908 for ; Thu, 2 Jan 2014 15:46:52 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 02 Jan 2014 15:46:49 +0100 From: krichy@cflinux.hu To: apache@FreeBSD.org Subject: Fwd: Re: apr / freebsd Message-ID: <0121e9344110bf2e1626d3f895973546@cflinux.hu> X-Sender: krichy@cflinux.hu User-Agent: Roundcube Webmail/0.9.5 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2014 14:46:53 -0000 Dear apache maintainers, I've found an issue with mod_fcgid on FreeBSD 9. I had /tmp cleaning enabled in my box, and mod_fcgid had chosen a lockfile under /tmp, which after some time was removed, and the whole httpd process stopped working from that time. I made some tests, and found that SYSV serialization could also be used, does not need a temp file, and avoids this issue. Now I worked around with my local /etc/make.conf as this: # devel/apr1 .if ${.CURDIR:M*ports/devel/apr1} CONFIGURE_ENV+= apr_lock_method="USE_SYSVSEM_SERIALIZE" .endif But maybe this could be applied to the port globally. Or any other workarounds? Regards, -------- Eredeti üzenet -------- Tárgy: Re: apr / freebsd Dátum: 2013-11-24 20:45 Feladó: Richard Kojedzinszky Címzett: Greg Ames Másolat: Jeff Trawick , dev Dear Greg, Thanks for your efforts. Regards, Kojedzinszky Richard On Sun, 24 Nov 2013, Greg Ames wrote: > > Hi Richard, > > I retired from IBM last Jan, but still lurk on some of the apr/httpd > mailing lists even though I haven't contributed any code in a long > time. > > Back when we came up with those lock hints, our priorities were > 1. reliability, > 2. simplicity for users (i.e. idiot proof), and > 3. performance. > > I know FreeBSD has matured in the last decade, so I wouldn't be > surprised if the best default is different today.  > > re mod_fcgid: I haven't contributed anything to it, other than > enthusiastic support of the concept.  I've cc'd people who are more > actively involved with apr and mod_fcgid. > > Best regards, > Greg Ames > > on a sailboat anchored in the Sea of Abaco, Bahamas :-) looking at a > red sunrise and Barometer Bob's forecast of an approaching cold front > plus 25-35 knot winds tonight :(  > > On Nov 20, 2013 3:50 AM, "Richard Kojedzinszky" > wrote: > Dear Greg, > > I've found your name in a commit in apr sources, specially in > build/apr_hints.m4. You've set apr_lock_method to FLOCK for FreeBSD > systems, but that was more than > ten years ago. I am courious about that hint is still needed or > not, but how I get there is a strange way: > I've set up apache2.2 and mod_fcgid, and as this lock method is > forced, mod_fcgid creates temp lock files in /tmp, and my regular /tmp > cleaning process > unfortunately removes that files after some days. And this > effectively stops apache from working. > > So please review that decision, is that hint still needed in > FreeBSD systems or not. > > Thanks in advance, > > Kojedzinszky Richard > > >