Gentoo Archives: gentoo-user

From: Joost Roeleveld <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Apache is running but its log is not
Date: Wed, 04 May 2011 06:17:15
Message-Id: 20110504061736.3D9B5202A@data.antarean.org
In Reply to: Re: [gentoo-user] Apache is running but its log is not by Adam Carter
1 On Wednesday 04 May 2011 13:48:48 Adam Carter wrote:
2 > > Well, 2.2.17 is indeed my server, but I decided to stop it and start it
3 > > again. Current log files showed up.
4 > > Problem solved, by brute force again, and without any epiphanies of
5 > > understanding.
6 >
7 > Last guess - logrotate is managing the log files but not reloading apache
8 > afterwards. Check that the entries in /etc/logrotate.d/apache2 have a line
9 > in there that runs /etc/init.d/apache2 reload.
10
11 Adam,
12
13 I think you got a really good guess. :)
14 Especially as the log-files listed by lsof have status "deleted":
15 **
16 apache2 5288 root 9w REG 8,44 57327591 204998
17 /var/log/apache2/access_log-20110204 (deleted)
18 **
19
20 Interesting things happen when a file is deleted while a process still has
21 access.
22
23 --
24 Joost

Replies

Subject Author
Re: [gentoo-user] Apache is running but its log is not Kevin O'Gorman <kogorman@×××××.com>
Re: [gentoo-user] Apache is running but its log is not Alan McKinnon <alan.mckinnon@×××××.com>