diff options
Diffstat (limited to 'debian/winbind.logrotate')
-rw-r--r-- | debian/winbind.logrotate | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/winbind.logrotate b/debian/winbind.logrotate new file mode 100644 index 0000000..f79f431 --- /dev/null +++ b/debian/winbind.logrotate @@ -0,0 +1,17 @@ +/var/log/samba/log.winbindd { + weekly + missingok + rotate 7 + postrotate + if [ -f /var/run/samba/winbindd.pid ]; then + if [ -x /usr/bin/smbcontrol ]; then + /usr/bin/smbcontrol winbindd reload-config + elif [ -f /run/samba/winbindd.pid ]; then + kill -HUP `cat /run/samba/winbindd.pid` + fi + fi + endscript + compress + delaycompress + notifempty +} |