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

Bug 274253

Summary: app-admin/denyhosts should install logrotate config file
Product: Gentoo Linux Reporter: Michael Palimaka (kensington) <kensington>
Component: Current packagesAssignee: Thomas Anderson (tanderson) (RETIRED) <tanderson>
Status: RESOLVED FIXED    
Severity: enhancement CC: darkside, non7top, svrmarty
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://denyhosts.sourceforge.net/faq.html#2_25
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: basic logrotate config file for denyhosts

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