logrotate entry for denyhosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
denyhosts (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: denyhosts
IMO every daemon that has it's own /var/log file, should have a corresponding /etc/logrotate.d entry.
This is from the DenyHosts FAQ substituting invoke-rc.d for service in the pre/post rotate section.
# From http://
# how many historical logs do you wish to keep
#rotate 5
# don't rotate empty logs
notifempty
missingok
# uncomment this if you want the file created with
# rw permissions for the root user and root group
#create 0600 root root
# uncomment this if you want to compress the rotated files
#compress
# uncomment this out if you want to rotate it each day
#daily
# uncomment this out if you want to rotate it each month
#monthly
# uncomment this if you want the logs to be capped at a
# certain size and then specify the size.
#size=64k
# this should match the DAEMON_LOG configuration setting of DenyHosts
/var/log/denyhosts {
prerotate
endscript
postrotate
endscript
}
Marking as Resolved, given that the denyhosts package has had a logrotate script since version 2.5-1.