--- a/services/univention-ldb-modules/debian/libunivention-ldb-modules.postinst +++ a/services/univention-ldb-modules/debian/libunivention-ldb-modules.postinst @@ -40,7 +40,8 @@ case "$1" in : else if test -x /etc/init.d/samba; then - invoke-rc.d --query samba ## check policy-rc.d + ## check policy-rc.d + invoke-rc.d --query samba status rc=$? if [ "$rc" -eq 104 ] || [ "$rc" -eq 100 ]; then /etc/init.d/samba restart