Package: samba Version: 2:4.3.0+dfsg-2 That has been suggested on https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1385868 (the Ubuntu package had a bug after the upstart->systemd transition, which has been fixed now, the change might still make sense though)
"using "smbcontrol all reload-config". This command doesn't return an error if the services aren't running." https://launchpadlibrarian.net/210929997/0001-Use-smbcontrol-for-log-rotation.patch Suggested logrotate script "/var/log/samba/log.smbd /var/log/samba/log.nmbd { weekly missingok rotate 7 sharedscripts postrotate smbcontrol all reload-config endscript compress notifempty }" Cheers, Sebastien Bacher