A modified postrotate rules that works is:

        postrotate
                if systemctl -q is-enabled smbd && [ -x /usr/bin/smbcontrol ]; 
then
                        /usr/bin/smbcontrol smbd reload-config
                else
                        /bin/true
                fi
        endscript

(similarly for nmbd).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1760855

Title:
  logrotate rules do not allow for samba being disabled.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1760855/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to