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

Bug#157021: marked as done (logrotate: apache postrotate script try to reload the apache, even the isn't running)



Your message dated Tue, 14 Oct 2003 18:35:28 +0100
with message-id <20031014173528.GC27861@parcelfarce.linux.theplanet.co.uk>
and subject line already fixed
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; 17 Aug 2002 08:45:41 +0000
>From tsauter@gmx.net Sat Aug 17 03:45:41 2002
Return-path: <tsauter@gmx.net>
Received: from pd95184fb.dip.t-dialin.net (explorer.resix.de) [217.81.132.251] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17fzDI-00085c-00; Sat, 17 Aug 2002 03:45:41 -0500
Received: from explorer.viastore.de (sar@explorer [127.0.0.1])
	by explorer (8.12.5/8.12.5/Debian-1) with ESMTP id g7G6pF1B001060;
	Fri, 16 Aug 2002 08:51:15 +0200
Received: (from sar@localhost)
	by explorer.viastore.de (8.12.5/8.12.5/Debian-1) id g7G6pEgL001059;
	Fri, 16 Aug 2002 08:51:14 +0200
Message-Id: <200208160651.g7G6pEgL001059@explorer.viastore.de>
From: Thorsten Sauter <tsauter@gmx.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: logrotate: apache postrotate script try to reload the apache, even the isn't running
X-Mailer: reportbug 1.50
Date: Fri, 16 Aug 2002 08:51:14 +0200
X-BadReturnPath: sar@explorer.viastore.de rewritten as tsauter@gmx.net
  using "From" header
Delivered-To: submit@bugs.debian.org

Package: logrotate
Version: 3.5.9-10
Severity: normal

I get the following error message every night from logrotate
for the apache log files:

/etc/cron.daily/logrotate:
error running shared postrotate script for /var/log/apache/*.log 
run-parts: /etc/cron.daily/logrotate exited with return code 1

The apache server isn't running, so the postrotate script failes,
because it can't reload the non-running apache webserver.

Maybe the following quick hack is good solution for this problem:
11c11
<               /etc/init.d/apache reload > /dev/null
---
>               /etc/init.d/apache reload > /dev/null || true

Or you should insert a simple status query for the apache:
	pidof apache 1>/dev/null 2>&1
	[ $? -eq 0 ] && /etc/init.d/apache reload > /dev/null


Bye
Thorsten


-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux explorer 2.4.18-xfs-1.1 #1 Mon Jun 17 13:05:47 CEST 2002 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

Versions of packages logrotate depends on:
ii  base-passwd                   3.4.1      Debian Base System Password/Group 
ii  cron                          3.0pl1-72  management of regular background p
ii  libc6                         2.2.5-13   GNU C Library: Shared libraries an
ii  libpopt0                      1.6.4-2    lib for parsing cmdline parameters


---------------------------------------
Received: (at 157021-done) by bugs.debian.org; 14 Oct 2003 17:35:31 +0000
>From willy@www.linux.org.uk Tue Oct 14 12:35:30 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 1A9T4z-0007E5-00; Tue, 14 Oct 2003 12:35:29 -0500
Received: from willy by www.linux.org.uk with local (Exim 4.22)
	id 1A9T4y-0004O5-P8; Tue, 14 Oct 2003 18:35:28 +0100
Date: Tue, 14 Oct 2003 18:35:28 +0100
From: Matthew Wilcox <willy@debian.org>
To: 157021-done@bugs.debian.org, 155921-done@bugs.debian.org
Subject: already fixed
Message-ID: <20031014173528.GC27861@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: 157021-done@bugs.debian.org
X-Spam-Status: No, hits=0.0 required=4.0
	tests=none
	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)


These bugs are the same as 142216 and 134691 which were fixed by 1.3.27.0-2

-- 
"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: