Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Bug#460105: /etc/init.d/apache2 greps excessively for PidFile

From: Nicolas Valcarcel <nvalcarcel(at)ubuntu-pe.org>
Date: Thu Jan 10 2008 - 11:38:34 EST


Package: Apache2
Version: 2.2.6-3
User: nvalcarcel@ubuntu-pe.org
Usertags: origin-ubuntu hardy ubuntu-patch

/etc/init.d/apache2 does a "grep ^PidFile /etc/apache2/* -r".

this grep has two (and others) main disadvantages: 1. It reads an unkown number of files without reason (remember: a dedicated host might have hundreds of files and symlinks in sites-enabled|sites-available.
2. It would even parse a file like apache.conf.backup and check if there is a pid to kill.

Therefore I'd only parse .conf files or better apache2.conf as this is the place to configure the location of the PidFile. Besides this would solve the mentioned problem.

Or ideally being more intelligent about which files to look at, e.g. *.conf...
Originaly reported on:
https://bugs.edge.launchpad.net/ubuntu/+source/apache2/+bug/112991

Attaching patch who solves it

-- 
aka nxvl
Peruvian LoCo Team
Key fingerprint = 8104 21CE A580 7EB7 5184  8DFF 6A3A D5DA 24DC 6AF5
gpg --keyserver keyserver.ubuntu.com --recv-keys 24DC6AF5

-- To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Received on Thu Jan 10 11:49:15 2008
Do you need help?X

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 02:59:52 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library