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

Bug#288625: marked as done (apache, logrotate.d file errors when reloads if apache is not running)



Your message dated Wed, 08 Jun 2005 14:22:04 +0200
with message-id <87k6l5m42b.fsf@vawad.err.no>
and subject line Sarge is released
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; 4 Jan 2005 19:00:42 +0000
>From george@galis.org Tue Jan 04 11:00:42 2005
Return-path: <george@galis.org>
Received: from sta.galis.org [66.250.170.210] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1Cltv8-0002t4-00; Tue, 04 Jan 2005 11:00:42 -0800
Received: (qmail 27243 invoked by uid 2000); 4 Jan 2005 19:00:41 -0000
From: "George Georgalis" <george@galis.org>
Date: Tue, 4 Jan 2005 14:00:41 -0500
To: submit@bugs.debian.org
Subject: apache, logrotate.d file errors when reloads if apache is not running
Message-ID: <20050104190041.GC24751@sta.local>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_01,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: apache
Version: 1.3.26-0woody6

I've long ignored or disabled the results of /etc/logrotate.d/apache
because I use my own logging system. Today on a fairly virgin box
I went to see exactly what the problem is.

Since "missingok" is in there I was puzzled at what could cause the
problem.  Turns out the postrotate script doesn't check if the installed
apache is running before it reloads it.

This will cause a problem on any box with apache installed but not
running.


--- /root/logrotate.d.apache.orig	Tue Jan  4 13:36:48 2005
+++ /etc/logrotate.d/apache	Tue Jan  4 13:55:47 2005
@@ -8,6 +8,6 @@
 	create 640 root adm
 	sharedscripts
 	postrotate
-		/etc/init.d/apache reload > /dev/null
+		[ ! -f /var/run/apache.pid ] || /etc/init.d/apache reload > /dev/null
 	endscript
 }




// George

-- 
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george@galis.org

---------------------------------------
Received: (at 288625-done) by bugs.debian.org; 8 Jun 2005 12:22:06 +0000
>From tfheen@err.no Wed Jun 08 05:22:06 2005
Return-path: <tfheen@err.no>
Received: from vawad.err.no [129.241.93.49] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DfzZO-0000HB-00; Wed, 08 Jun 2005 05:22:06 -0700
Received: from tfheen by vawad.err.no with local (Exim 4.34)
	id 1DfzZM-000338-Iq; Wed, 08 Jun 2005 14:22:04 +0200
To: 224783-done@bugs.debian.org, 237377-done@bugs.debian.org,
 226954-done@bugs.debian.org, 263322-done@bugs.debian.org,
 288625-done@bugs.debian.org
Subject: Sarge is released
Mail-Copies-To: never
From: Tollef Fog Heen <tfheen@err.no>
Organization: Private
Date: Wed, 08 Jun 2005 14:22:04 +0200
Message-ID: <87k6l5m42b.fsf@vawad.err.no>
User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: 288625-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 5


Closing this bug as sarge is now released and this is a bug which only
affects woody.

-- 
Tollef Fog Heen                                                        ,''`.
UNIX is user friendly, it's just picky about who its friends are      : :' :
                                                                      `. `' 
                                                                        `-  



Reply to: