[ILUG] Problem with removing apache logs
Dave Airlie
airlied at csn.ul.ie
Mon Nov 12 11:03:45 GMT 2001
When you kill apache did you make sure all the processes had exited...
I've seen them hang on until they've finished up doing stuff ...
if they were you sure something like a weblog scanner wan't running also?
Dave.
On Mon, 12 Nov 2001, Niall O Broin wrote:
> I had a problem on a box with removing some large apache logs. I don't run
> a logrotate script on the box, though if you follow this, you'll see why I
> don't think it would have helped. I stopped apache, deleted the log files,
> and started apache again, but the space used by the deleted files had not
> been returned to the free space. I had a version of lsof on the box but it
> was old (wrong kernel version) so a reboot was the quickest option to get
> back on the air. But why didn't the space get returned to the filesystem ?
> As I mentioned, I had stopped apache, and this is why I don't think a
> logrotate script would have helped - all it does is move the log files and
> send HUP to apache. If a non-existent apache process can hang on to a file,
> I don't imagine a little HUP is going to bother it :-)
>
>
>
> Niall
>
>
>
--
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DecStation / Linux VAX / ILUG person
More information about the ILUG
mailing list