%if %%ad_server_role == 'controleur de domaine'
/var/log/samba/log.smbd
/var/log/samba/log.samba {
%else
/var/log/samba/log.nmbd
/var/log/samba/log.smbd {
%end if
	weekly
	missingok
	rotate 7
	sharedscripts
	postrotate
%if %%ad_server_role == 'controleur de domaine'
        service samba-ad-dc force-reload
%else
        service nmbd reload > /dev/null
        service smbd reload > /dev/null
%end if
	endscript
	compress
	notifempty
}

/var/log/samba/JobSynchroSysvol.log {
    daily
    missingok
    rotate 7
    sharedscripts
    compress
    notifempty
}