--- a/usr/lib/univention-install/96univention-samba4.inst 2024-02-05 16:53:54.000000000 +0100 +++ b/usr/lib/univention-install/96univention-samba4.inst 2024-05-28 22:08:51.187639698 +0100 @@ -207,13 +207,6 @@ stop_conflicting_services() { ## stop samba3 services and heimdal-kdc if present - if [ -x /etc/init.d/samba ]; then - if [ -n "$(pgrep -f '/usr/sbin/(smbd|nmbd)')" ]; then - /etc/init.d/samba stop - ## the smbd init script might refuse to run if it detects ADDC config in smb.conf - start-stop-daemon --stop --quiet --retry 2 --exec /usr/sbin/smbd - fi - fi if [ -x /etc/init.d/winbind ]; then if [ -n "$(pgrep -xf /usr/sbin/winbindd)" ]; then /etc/init.d/winbind stop @@ -221,6 +214,13 @@ start-stop-daemon --stop --quiet --retry 2 --exec /usr/sbin/winbindd fi fi + if [ -x /etc/init.d/samba ]; then + if [ -n "$(pgrep -f '/usr/sbin/(smbd|nmbd)')" ]; then + /etc/init.d/samba stop + ## the smbd init script might refuse to run if it detects ADDC config in smb.conf + start-stop-daemon --stop --quiet --retry 2 --exec /usr/sbin/smbd + fi + fi if [ -x /etc/init.d/heimdal-kdc ]; then if [ -n "$(pgrep -f '/usr/lib/heimdal-servers/(kdc|kpasswdd)')" ]; then /etc/init.d/heimdal-kdc stop