From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QoeWJ-0000mz-Do for garchives@archives.gentoo.org; Wed, 03 Aug 2011 16:42:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 119EC21C1E8; Wed, 3 Aug 2011 16:41:52 +0000 (UTC) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) by pigeon.gentoo.org (Postfix) with ESMTP id B90B221C19C for ; Wed, 3 Aug 2011 16:40:05 +0000 (UTC) Received: by fxd23 with SMTP id 23so1527160fxd.40 for ; Wed, 03 Aug 2011 09:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qK4f5z4QxshRErL8f8yXE43M9hVNF7woYiRuCWfM3Dw=; b=WZwEcdTeqwPD+NLptLdJEFjdwPMD5PQg7qcjobfDd5nhdn8CIpf4I97BO4ikSFcvIc Rov/dFUyyEZa7Ga3xyvP19OKPGDH5ji1UE+TRk2AZCoqi1lOG+GkDo8Bkr/5uk094fjq 2fVZfUUnp5szIhKycEfemIPyvW4A2xa7IR3HY= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.223.28.65 with SMTP id l1mr10337449fac.136.1312389604934; Wed, 03 Aug 2011 09:40:04 -0700 (PDT) Received: by 10.223.28.139 with HTTP; Wed, 3 Aug 2011 09:40:04 -0700 (PDT) In-Reply-To: <4E3977DE.4030007@gmail.com> References: <4E397381.8010906@gmail.com> <4E3977DE.4030007@gmail.com> Date: Wed, 3 Aug 2011 12:40:04 -0400 Message-ID: Subject: Re: [gentoo-user] apache: what could cause "graceful restart requested"? From: Michael Mol To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: X-Archives-Hash: b1d665c525d4564d072b79de87cbd9f0 On Wed, Aug 3, 2011 at 12:31 PM, Jarry wrote: > But is it actually necessary to do it? I mean everything between > postrotate-endscript is done after the log file has been rotated. The log file has been moved, but Apache still holds open the file descriptor to the old log file--it will continue writing to that file, even under its new name. > So I do not understand why at that time apache must be reloaded. The reload causes Apache to close the file descriptor, and then open the file again. Since it *opens* the file by name, it will start with a fresh log file. > > Moreover, because of that apache-reloading apc was emptied so it > takes again some time till all php-scripts are in cache again... What you really want is for the logrotate script to ask Apache to flush its logs and reopen the file. I don't know offhand if Apache has a way to do that, short of a graceful restart. -- :wq