Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193745 - fail2ban could use a logrotate script
Summary: fail2ban could use a logrotate script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 12:33 UTC by Seemant Kulleen (RETIRED)
Modified: 2007-11-20 12:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seemant Kulleen (RETIRED) gentoo-dev 2007-09-25 12:33:22 UTC
The official docs recommend adding a logrotate script

/var/log/fail2ban.log {
    daily
    rotate 7
    missingok
    compress
    postrotate
      /usr/local/bin/fail2ban-client reload 1>/dev/null || true
    endscript
}

it would be nice to add into the logrotate.d directory with the "logrotate" USE flag, in my opinion
Comment 1 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-09-26 14:41:27 UTC
closing since i commited it yesterday, thanks.
Comment 2 Hod 2007-11-20 12:52:36 UTC
(In reply to comment #1)
> closing since i commited it yesterday, thanks.
> 

 "/usr/local/bin/fail2ban-client" must be  "/usr/bin/fail2ban-client"