[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#145302: marked as done (/etc/cron.daily/apache should uniq the logfile list)



Your message dated Tue, 14 Oct 2003 18:44:14 +0100
with message-id <20031014174414.GD27861@parcelfarce.linux.theplanet.co.uk>
and subject line logrotate makes this irrelevant
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 30 Apr 2002 17:50:29 +0000
>From ian@chiark.greenend.org.uk Tue Apr 30 12:50:29 2002
Return-path: <ian@chiark.greenend.org.uk>
Received: from chiark.greenend.org.uk [212.22.195.2] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 172bll-0004tt-00; Tue, 30 Apr 2002 12:50:29 -0500
Received: from ian by chiark.greenend.org.uk with local (Exim 3.12 #1)
	id 172blk-0005q3-00 (Debian); Tue, 30 Apr 2002 18:50:28 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15566.55652.434190.562399@chiark.greenend.org.uk>
Date: Tue, 30 Apr 2002 18:50:28 +0100 (BST)
From: sysadmin@chiark.greenend.org.uk (Ian Jackson)
To: submit@bugs.debian.org
Subject: /etc/cron.daily/apache should uniq the logfile list
X-Mailer: VM 6.75 under Emacs 19.34.1
Delivered-To: submit@bugs.debian.org

Package: apache
Version: 1.3.9-14

I have a couple of virtual hosts on my system which are mostly just
aliases, and share logfiles.  The log rotation script rotates the logs
more than once.  Here is a patch.

--- /etc/cron.daily/apache~	Fri Aug 22 11:49:35 1997
+++ /etc/cron.daily/apache	Tue Apr 30 18:48:47 2002
@@ -11,7 +11,7 @@
 
 # This looks for lines in the conf files like: FooLog /some/where
 LOGS=$(egrep -h "^[[:space:]]*[A-Za-z]*Log /" /etc/apache/*.conf \
-    | sed s/^\ *//g | cut -f 2 -d " ")
+    | sed s/^\ *//g | cut -f 2 -d " " | sort -u)
 
 if [ "$LOGS" = "" ]
 then

Ian.

---------------------------------------
Received: (at 145302-close) by bugs.debian.org; 14 Oct 2003 17:44:16 +0000
>From willy@www.linux.org.uk Tue Oct 14 12:44:15 2003
Return-path: <willy@www.linux.org.uk>
Received: from parcelfarce.linux.theplanet.co.uk (www.linux.org.uk) [195.92.249.252] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1A9TDT-0001oN-00; Tue, 14 Oct 2003 12:44:15 -0500
Received: from willy by www.linux.org.uk with local (Exim 4.22)
	id 1A9TDS-0004Tm-U3
	for 145302-close@bugs.debian.org; Tue, 14 Oct 2003 18:44:14 +0100
Date: Tue, 14 Oct 2003 18:44:14 +0100
From: Matthew Wilcox <willy@debian.org>
To: 145302-close@bugs.debian.org
Subject: logrotate makes this irrelevant
Message-ID: <20031014174414.GD27861@parcelfarce.linux.theplanet.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.1i
Sender: <willy@www.linux.org.uk>
Delivered-To: 145302-close@bugs.debian.org
X-Spam-Status: No, hits=1.0 required=4.0
	tests=BAYES_60
	version=2.53-bugs.debian.org_2003_10_13
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_13 (1.174.2.15-2003-03-30-exp)


apache no longer uses a custom cron entry, but a logrotate entry instead.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk



Reply to: