The UCR template for /etc/init.d/samba in univention-samba (not samba4) is incompatible with systemd, because it loads the lsb/init-functions. Actually it's a pure helper script that should be masked for systemd Bug 43874 added a "# pidfile: /var/run/samba/smbd.pid" but that ties that script to the smbd process, while it controls both, smbd and nmbd. We should remove the template so the standard /etc/init.d/samba helper script included in the Debian "samba" package is used instead,, just like it is done on systems with univention-samba4. +++ This bug was initially created as a clone of Bug #44118 +++
For Samba-AD there is Bug #44237 comment 7