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

Bug#146049: marked as done (apache: More robust logrotate entry)



Your message dated Mon, 20 Oct 2003 20:45:28 +0100
with message-id <20031020194528.GU18370@parcelfarce.linux.theplanet.co.uk>
and subject line alternative solution
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; 6 May 2002 20:27:47 +0000
>From tjormola@cc.hut.fi Mon May 06 15:27:47 2002
Return-path: <tjormola@cc.hut.fi>
Received: from smtp-3.hut.fi [130.233.228.93] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 174p5G-0001aN-00; Mon, 06 May 2002 15:27:46 -0500
Received: from ganga (shakti.tky.hut.fi [130.233.21.52])
	by smtp-3.hut.fi (8.12.3/8.12.3) with ESMTP id g46KRicM023798;
	Mon, 6 May 2002 23:27:44 +0300
Message-Id: <200205062027.g46KRicM023798@smtp-3.hut.fi>
From: Tuomas Jormola <tjormola@cc.hut.fi>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apache: More robust logrotate entry
X-Mailer: reportbug 1.50
Date: Mon, 06 May 2002 23:27:38 +0300
Delivered-To: submit@bugs.debian.org

Package: apache
Version: 1.3.24-3
Severity: minor

Hi,

I wanted to disable apache temporarely by removing the executable
bit from /etc/init.d/apache so it isn't started on boot.
However, no I keep getting errors from cron when it runs
the logrotate job. postrotate target of /etc/logrotate.d/apache
tries to run /etc/init.d/apache reload > /dev/null which if course
fails now. What about this small change which would eliminate
this minor thing? It would also work if someone decided to
rename or delete the apache init script.
test -x /etc/init.d/apache && /etc/init.d/apache reload > /dev/null

Regards,
Tuomas Jormola <tjormola@cc.hut.fi>

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux ganga 2.4.19-pre6 #1 Wed Apr 10 14:24:24 EEST 2002 i686
Locale: LANG=C, LC_CTYPE=fi_FI@euro

Versions of packages apache depends on:
ii  apache-common                1.3.24-3    Support files for all Apache webse
ii  dpkg                         1.9.20      Package maintenance system for Deb
ii  libc6                        2.2.5-6     GNU C Library: Shared libraries an
ii  libdb2                       2:2.7.7.0-7 The Berkeley database routines (ru
ii  libexpat1                    1.95.2-6    XML parsing C library - runtime li
ii  logrotate                    3.5.9-8     Log rotation utility
ii  mime-support                 3.19-1      MIME files 'mime.types' & 'mailcap
ii  perl                         5.6.1-7     Larry Wall's Practical Extraction 
ii  perl [perl5]                 5.6.1-7     Larry Wall's Practical Extraction 


---------------------------------------
Received: (at 146049-done) by bugs.debian.org; 20 Oct 2003 19:45:30 +0000
>From willy@www.linux.org.uk Mon Oct 20 14:45:29 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 1ABfy5-0000Ic-00; Mon, 20 Oct 2003 14:45:29 -0500
Received: from willy by www.linux.org.uk with local (Exim 4.22)
	id 1ABfy4-0004Yb-P3
	for 146049-done@bugs.debian.org; Mon, 20 Oct 2003 20:45:28 +0100
Date: Mon, 20 Oct 2003 20:45:28 +0100
From: Matthew Wilcox <willy@debian.org>
To: 146049-done@bugs.debian.org
Subject: alternative solution
Message-ID: <20031020194528.GU18370@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: 146049-done@bugs.debian.org
X-Spam-Status: No, hits=2.0 required=4.0
	tests=BAYES_99
	version=2.53-bugs.debian.org_2003_10_20
X-Spam-Level: **
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_20 (1.174.2.15-2003-03-30-exp)


The currently preferred way to do this is to edit /etc/default/apache
and change start_at_boot=true to start_at_boot=false.  I just posted a
solution to debian-apache that would let us honour the executable bit
on apache but this bug is actually solved.

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