From owner-freebsd-questions@FreeBSD.ORG Fri Jul 18 11:45:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C833C10656C1 for ; Fri, 18 Jul 2008 11:45:13 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from relay.lc-words.com (relay.lc-words.com [62.121.130.110]) by mx1.freebsd.org (Postfix) with ESMTP id 64FE38FC0A for ; Fri, 18 Jul 2008 11:45:13 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from localhost (localhost [127.0.0.1]) by relay.lc-words.com (Postfix) with ESMTP id B906EB8028 for ; Fri, 18 Jul 2008 13:45:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lcwords.com; s=mainlcwords; t=1216381511; bh=0YTy5caoBgXdvCIl6SAH+b43b2nMYolIHYZ XTMxHoT4=; h=Message-ID:Date:From:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=d OHR7vkBdWnmcV6BfuozLYLA5WS9uiM4hjRovZLXsS7Nnlb4h20gVkkZZBbMZBWdgQsQ 6g9WkkGhxFr+XxSpyiJA1YCHt7fXcMTABaPiYgKlomLUz+GGb6GQJ6hAsLJ/Ai9j5ed tf6TI6LW4GzcWmTbujI7slMBUUDxUZDLpTGA= Received: from relay.lc-words.com ([127.0.0.1]) by localhost (relay.lc-words.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 08997-03 for ; Fri, 18 Jul 2008 13:45:11 +0200 (CEST) Received: from [127.0.0.1] (aejn125.neoplus.adsl.tpnet.pl [79.186.247.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: z.szalbot@lcwords.com) by relay.lc-words.com (Postfix) with ESMTPSA id 4F3BAB8021 for ; Fri, 18 Jul 2008 13:45:11 +0200 (CEST) Message-ID: <48808246.10301@lcwords.com> Date: Fri, 18 Jul 2008 13:45:10 +0200 From: Zbigniew Szalbot Organization: SGM Lifewords User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <487F2525.3030304@lcwords.com> <20080717072023.4b9e1d2f.wmoran@potentialtech.com> <487F2D9B.2010407@lcwords.com> <200807170904.26354.mario.lobo@ipad.com.br> <487F52EE.2050907@infracaninophile.co.uk> <4880748D.8030902@lcwords.com> <48807DC8.1050007@infracaninophile.co.uk> In-Reply-To: <48807DC8.1050007@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Subject: Re: log size handling X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2008 11:45:13 -0000 Hello, Matthew Seaman: > Correct. Although you may want to add '30' as the 8th field -- that means > 'send signal 30 (SIGUSR1) to apache instead of SIGHUP' -- SIGUSR1 causes > apache to do a graceful restart rather than abruptly killing and restarting > everything: http://httpd.apache.org/docs/2.2/stopping.html > > You'll need to experiment though -- if your user HTTP connections are > long-lived, you can end up with apache appending data to a rotated logfile > that it still has an open file descriptor on. The file will be unlinked > once the gzip compression has run. Now, writing to an unlinked file is > allowed under Unix, but once that apache child process terminates and > releases the descriptor the data will disappear into the ether, so you > can lose log entries. Thank you very much Matthew! Just one final question. When the apache child process finally terminates, will apache start logging to a new log? Or will it be writing into the ether until it gets restarted? Thanks again! I appreciate your help. -- Zbigniew Szalbot www.LCWords.com