logrotate entry for denyhosts

Bug #260067 reported by Dan
2
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://denyhosts.sourceforge.net/faq.html#logrotate

# 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
                invoke-rc.d denyhosts stop
        endscript
        postrotate
                invoke-rc.d denyhosts start
        endscript
}

Revision history for this message
Andreas Olsson (andol) wrote :

Marking as Resolved, given that the denyhosts package has had a logrotate script since version 2.5-1.

Changed in denyhosts (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.