Package: samba
Version: 2:4.1.3+dfsg-2
Followup-For: Bug #702201

The easiest workaround is to add "delaycompress" to the logrotate config so
that logrotate renames the log file on the first rotate, and compresses it
on the second rotate.

-- Configuration Files:
/etc/logrotate.d/samba changed:
/var/log/samba/log.smbd {
        weekly
        missingok
        rotate 7
        postrotate
                /etc/init.d/smbd reload > /dev/null
        endscript
        compress
        delaycompress
        notifempty
}
/var/log/samba/log.nmbd {
        weekly
        missingok
        rotate 7
        postrotate
                [ ! -f /var/run/samba/nmbd.pid ] || kill -HUP `cat 
/var/run/samba/nmbd.pid`
        endscript
        compress
        delaycompress
        notifempty
}


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to