Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274253 - app-admin/denyhosts should install logrotate config file
Summary: app-admin/denyhosts should install logrotate config file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL: http://denyhosts.sourceforge.net/faq....
Whiteboard:
Keywords:
: 310631 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-15 17:15 UTC by Michael Palimaka (kensington)
Modified: 2010-05-04 02:54 UTC (History)
3 users (show)

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


Attachments
basic logrotate config file for denyhosts (denyhosts.logrotate,200 bytes, text/plain)
2009-06-15 17:16 UTC, Michael Palimaka (kensington)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Palimaka (kensington) gentoo-dev 2009-06-15 17:15:20 UTC
app-admin/denyhosts, by default, writes logs to /var/log/denyhosts. It should therefore install some logrotate configuration.

Attached is the config I made. It should be noted that this is only useful for when denyhosts is being run in daemon mode. As it appears to ignore HUP (and as per upstream example), denyhosts needs to be stopped, log rotated, then started again - a problem for those not running as a daemon.

I tried to factor this into the configuration by only stopping the daemon if it was running (if [ -f /var/run/denyhosts.pid ]), however I wasn't sure how determine if it should be started up again or not.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2009-06-15 17:16:24 UTC
Created attachment 194807 [details]
basic logrotate config file for denyhosts
Comment 2 svrmarty 2010-04-03 11:44:25 UTC
same as #310631
Comment 3 svrmarty 2010-04-03 11:44:47 UTC
same as bug #310631
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-04-27 14:34:11 UTC
*** Bug 310631 has been marked as a duplicate of this bug. ***
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-04 02:54:06 UTC
Thanks, in denyhosts-2.6-r2