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 > > > From owner-freebsd-apache@FreeBSD.ORG Thu Jan 2 21:51:10 2014 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C13206F0 for ; Thu, 2 Jan 2014 21:51:10 +0000 (UTC) Received: from mail-gw.glidecom.se (mail-gw.glidecom.se [89.221.241.7]) by mx1.freebsd.org (Postfix) with ESMTP id 82FA016B7 for ; Thu, 2 Jan 2014 21:51:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail-gw.glidecom.se (Postfix) with ESMTP id 6D23F15B4D5C for ; Thu, 2 Jan 2014 22:51:01 +0100 (CET) Received: from mail-gw.glidecom.se ([127.0.0.1]) by localhost (mail-gw.glidecom.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22967-01-4 for ; Thu, 2 Jan 2014 22:51:00 +0100 (CET) Received: from ernst.glidecom.se (ernst.glidecom.se [89.221.241.4]) by mail-gw.glidecom.se (Postfix) with ESMTP id 4343415B3CB7 for ; Thu, 2 Jan 2014 22:44:34 +0100 (CET) Received: by ernst.glidecom.se (Postfix, from userid 30) id 9F5CE161306; Thu, 2 Jan 2014 22:44:52 +0100 (CET) To: freebsd-apache@freebsd.org Subject: Enc: Orcamento 2/1/2014 19:45:05 From: Giovanna Ribeiro Message-Id: <20140102214452.9F5CE161306@ernst.glidecom.se> Date: Thu, 2 Jan 2014 22:44:52 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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 21:51:10 -0000 [1]Planilha-B7HTK8.docx (98,6 KB) References 1. http://www.nampapalao.com/EN/jz/doc.php#/B7HTK8/document/B7HTK8.aspx From owner-freebsd-apache@FreeBSD.ORG Fri Jan 3 04:22:42 2014 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE10E8FC for ; Fri, 3 Jan 2014 04:22:42 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9F8271440 for ; Fri, 3 Jan 2014 04:22:42 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 08DE320A23 for ; Thu, 2 Jan 2014 23:22:35 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute2.internal (MEProxy); Thu, 02 Jan 2014 23:22:35 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=poDyTHfgzXU9IcIrjvFMTIT2D38=; b=dJn gmx6TDfoN2BcXvsQX8IbCTPvzm2nyCmAglS/My1oqEHCaNBLg6go/y0p4PoPYyAh 8BwuzKf38cK+lTwKFd8nWlx7K/Ch+94H+JEMS5ENejTmIkPTXu6ik2tSiYa22EiA ru6l/sm/Qdpz3qQfH31K6sEUqR3b21T/rOaHfHQQ= Received: by web3.nyi.mail.srv.osa (Postfix, from userid 99) id C92731086D2; Thu, 2 Jan 2014 23:22:34 -0500 (EST) Message-Id: <1388722954.21375.66032021.2C5C3457@webmail.messagingengine.com> X-Sasl-Enc: yCmJPrkDSbEJfbX7z5jh0wAxsGQ7pzAzpV0OzfXk6bJc 1388722954 From: Mark Felder To: freebsd-apache@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-1af17f61 In-Reply-To: <0121e9344110bf2e1626d3f895973546@cflinux.hu> References: <0121e9344110bf2e1626d3f895973546@cflinux.hu> Subject: Re: Fwd: Re: apr / freebsd Date: Thu, 02 Jan 2014 22:22:34 -0600 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: Fri, 03 Jan 2014 04:22:42 -0000 On Thu, Jan 2, 2014, at 8:46, krichy@cflinux.hu wrote: > 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, > > I can't comment on what is the correct solution, but I'm wondering if /tmp is the right directory for that lock file in the first place. Is it not common for Linux distros to be more aggressive about cleaning /tmp? I thought FreeBSD was rather conservative in this respect. hier(7) says /var/tmp is "temporary files that are kept between system reboots". Perhaps ports that have lock files that shouldn't be touched by automated processes should really be kept in /var/tmp? (The cleanvar rc script doesn't touch /var/tmp, fyi)