[Pkg-samba-maint] Bug#702201: samba: logrotate script for nmbd.log does not wait long enough.
Matthew Gabeler-Lee
cheetah at fastcat.org
Thu Jan 16 06:39:12 UTC 2014
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
}
More information about the Pkg-samba-maint
mailing list