Cause: The Samba hook scripts were explicitly calling SysV-init scripts for Samba /etc/init.d/smb .
Consequence: The scripts do not work as expected on systemd systems. The fail to restart or reload Samba when required.
Fix: The scripts now use the service command which works both on SysV and systemd systems.
Result: The scripts work as expected on SysV and systemd systems.