summaryrefslogtreecommitdiffstats
path: root/debian/winbind.logrotate
blob: f79f4315ef49f1450dcfe989d895412e5030fe1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}