Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52243 - wrong default logfile
Summary: wrong default logfile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-28 01:23 UTC by Fluff
Modified: 2004-05-29 10:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to use the correct log file. (apachetop.patch,1.24 KB, patch)
2004-05-29 07:22 UTC, David Stanek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fluff 2004-05-28 01:23:01 UTC
When emerging the default apachetop-0.11 the ebuild is set to configure apachetop with /var/log/access_log as default (if not using apache2) the correct path should read /var/log/apache/access_log

Reproducible: Always
Steps to Reproduce:
1. emerged apachetop-0.11
2. tried to run it
3.

Actual Results:  
opening /var/log/access_log: No such file or directory
No input files could be opened



Editing apachetop-0.11.ebuild and changing

sed -i 's%DEFAULT_LOGFILE "/var/httpd/apache_log"%DEFAULT_LOGFILE
"/var/log/access_log"%' src/apachetop.h

into

sed -i 's%DEFAULT_LOGFILE "/var/httpd/apache_log"%DEFAULT_LOGFILE
"/var/log/apache/access_log"%' src/apachetop.h

should solve the problem
Comment 1 David Stanek 2004-05-29 07:22:12 UTC
Created attachment 32249 [details, diff]
Patch to use the correct log file.

Took the user's fix and created a patch from it.
Comment 2 Chuck Short (RETIRED) gentoo-dev 2004-05-29 10:52:31 UTC
Fixed in cvs, thanks for the bug report.