Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 108837

Summary: logrotate apache2 script calls the wrong init.d script
Product: Gentoo Linux Reporter: Edwin Barendse <gentoo>
Component: [OLD] ServerAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Edwin Barendse 2005-10-11 02:07:12 UTC
that problem is that the log get rotated but the compress function is not called
anymore due to the init.d script miss call. so every time the .1 log is not
compressed and so the next time it is overwritten with the next .1 log.

Reproducible: Always
Steps to Reproduce:
1. logrotate (weekly rotate)
2.
3.

Actual Results:  
apache log .1 gets not compressed and is overwritten with next logrotation

Expected Results:  
log .1 gets compressed to .1.gz and rotates in order

solution

the original scipt calls the init script 'apache' wich should be 'apache2'

/etc/logrotate.d/apache2
6c6
<                 /etc/init.d/apache restart
---
>                 /etc/init.d/apache2 restart
Comment 1 Edwin Barendse 2005-10-11 10:03:21 UTC
entered too quick sorry!