|
|||||||||||
|
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
/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.
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...
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
This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 02:59:52 EDT |
||||||||||
|
|||||||||||