Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400759 - www-servers/cherokee - Logrotate script failing
Summary: www-servers/cherokee - Logrotate script failing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-01-25 14:02 UTC by Alan Swanson
Modified: 2012-03-24 11:26 UTC (History)
0 users

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


Attachments
cherokee-logrotate.patch (cherokee-logrotate.patch,689 bytes, patch)
2012-01-25 14:02 UTC, Alan Swanson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Swanson 2012-01-25 14:02:07 UTC
Created attachment 299861 [details, diff]
cherokee-logrotate.patch

The logrotate script for cherokee has two fatal errors. Patch attached to fix the "files/cherokee.logrotate" file.

First, it is checking the existence of PID file against an incorrect (old?) location and no SIGUSR2 is then sent, using correct PID file location this time, for Cherokee to close log files.

Second, it rotating against "cherokee.*" whereas Cherokee logs to cherokee.access and cherokee.errors by default. So I've ended up with;

cherokee.access
cherokee.access-20120108
cherokee.access-20120108-20120116
cherokee.access-20120108-20120116-20120122
cherokee.access-20120116
cherokee.access-20120116-20120122
cherokee.access-20120122
cherokee.error
cherokee.error-20120108
cherokee.error-20120108-20120116
cherokee.error-20120108-20120116-20120122
cherokee.error-20120116
cherokee.error-20120116-20120122
cherokee.error-20120122

Where Cherokee is still logging to cherokee.access-20120108-20120116-20120122 and cherokee.error-20120108-20120116-20120122!
Comment 1 Pacho Ramos gentoo-dev 2012-03-24 11:26:40 UTC
+*cherokee-1.2.101-r1 (24 Mar 2012)
+
+  24 Mar 2012; Pacho Ramos <pacho@gentoo.org> +cherokee-1.2.101-r1.ebuild,
+  +files/cherokee.logrotate-r1, -cherokee-1.2.101.ebuild,
+  -files/cherokee.logrotate:
+  Fix logrotate file, bug #400759 by Alan Swanson.
+