/etc/init.d/apache2 greps excessively for PidFile
Bug #112991 reported by
Malcolm Scott
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Debian) |
Fix Released
|
Unknown
|
|||
apache2 (Ubuntu) |
Fix Released
|
Medium
|
Ubuntu Server |
Bug Description
Binary package hint: apache2
/etc/init.d/apache2 does a "grep ^PidFile /etc/apache2/* -r". It is not uncommon for there to exist a symlink from /etc/apache2/logs to /var/log/apache2: this causes that invocation of grep to scan through all of Apache's log files. On my web server there are several gigabytes of these, causing "/etc/init.
I suggest not following symlinks, for starters, using something like this instead perhaps:
find /etc/apache2/ -type f -print0 | xargs -0 grep ^PidFile
Or ideally being more intelligent about which files to look at, e.g. *.conf...
Changed in apache2: | |
importance: | Undecided → Medium |
Changed in apache2: | |
status: | Unknown → New |
Changed in apache2: | |
status: | New → Fix Committed |
Changed in apache2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Sorry, should have mentioned: I'm using feisty.