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 <gentoo-user+bounces-126547-garchives=archives.gentoo.org@lists.gentoo.org>) id 1QoeNn-0008Ji-Mo for garchives@archives.gentoo.org; Wed, 03 Aug 2011 16:33:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1928321C19A; Wed, 3 Aug 2011 16:33:14 +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 63B6321C128 for <gentoo-user@lists.gentoo.org>; Wed, 3 Aug 2011 16:32:09 +0000 (UTC) Received: by fxd23 with SMTP id 23so1517771fxd.40 for <gentoo-user@lists.gentoo.org>; Wed, 03 Aug 2011 09:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=kAt1yG7RYBROZXuQbSTnrzIT03X13k6ANYGYlK5nFxU=; b=dBbdY/E5QNbBFIptdV5YBe5eAxrbm38GO1aPgWpsAh285HNDB3l0BabYzCMPIAVV8P 31ZVSJTapDp18c1TJ5cWepuQIdNRVRVQNVurK1k7YWRlGCqldZBdS2OdKZIHYwn80X9h dWU82fAfs8e6s7g+JNpuszR22QoNef5Li9opE= Received: by 10.223.98.83 with SMTP id p19mr7774223fan.2.1312389129394; Wed, 03 Aug 2011 09:32:09 -0700 (PDT) Received: from [10.0.0.11] ([88.151.72.187]) by mx.google.com with ESMTPS id x2sm628773fal.20.2011.08.03.09.32.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Aug 2011 09:32:08 -0700 (PDT) Message-ID: <4E3977DE.4030007@gmail.com> Date: Wed, 03 Aug 2011 18:31:26 +0200 From: Jarry <mr.jarry@gmail.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] apache: what could cause "graceful restart requested"? References: <4E397381.8010906@gmail.com> <CA+czFiANL0vAdOVAhg162p2RTF+40pwbcC9CPWHt+X7KDFyp_w@mail.gmail.com> In-Reply-To: <CA+czFiANL0vAdOVAhg162p2RTF+40pwbcC9CPWHt+X7KDFyp_w@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: d8a3a5bd2569bbddecdfeee495e74db2 On 03-Aug-11 18:17, Michael Mol wrote: >> --- >> [Wed Aug 03 03:10:01 2011] [notice] Graceful restart requested, >> doing restart >> --- >> What could have caused this? BTW I noticed all apache logs >> have been rotated exactly at this time. Is that a reason >> why apache was restarted? I never noticed it... > > Very likely. logrotate would ask apache to restart so that it can move > the old log file out of the way. You are right. I just found this in /etc/logrotate.d/apache2 : /var/log/apache2/*log { missingok notifempty sharedscripts postrotate /etc/init.d/apache2 reload > /dev/null 2>&1 || true endscript } But is it actually necessary to do it? I mean everything between postrotate-endscript is done after the log file has been rotated. So I do not understand why at that time apache must be reloaded. Moreover, because of that apache-reloading apc was emptied so it takes again some time till all php-scripts are in cache again... Jarry -- _______________________________________________________________ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted.