[Samba] Upgraded > Samba no longer listening on 192.168.0.x

Winfried codecomplete at free.fr
Wed May 17 10:45:28 UTC 2017


Here goes:

root at debian:~# cat /etc/init.d/samba
#!/bin/sh

### BEGIN INIT INFO
# Provides:          samba
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: ensure Samba daemons are started (nmbd and smbd)
### END INIT INFO

set -e

# start nmbd, smbd and samba-ad-dc unconditionally
# the init scripts themselves check if they are needed or not
case $1 in
        start)
                /etc/init.d/nmbd start
                /etc/init.d/smbd start
                /etc/init.d/samba-ad-dc start
                ;;
        stop)
                /etc/init.d/samba-ad-dc stop
                /etc/init.d/smbd stop
                /etc/init.d/nmbd stop
                ;;
        reload)
                /etc/init.d/smbd reload
                ;;
        restart|force-reload)
                /etc/init.d/nmbd "$1"
                /etc/init.d/smbd "$1"
                /etc/init.d/samba-ad-dc "$1"
                ;;
        status)
                status=0
                NMBD_DISABLED=`testparm -s --parameter-name='disable
netbios' 2>/dev/null || true`
                SERVER_ROLE=`samba-tool testparm --parameter-name="server
role"  2>/dev/null | tail -1 || true`
                if [ "$SERVER_ROLE" != "active directory domain controller"
]; then
                        if [ "$NMBD_DISABLED" != "Yes" ]; then
                                /etc/init.d/nmbd status || status=$?
                        fi
                        /etc/init.d/smbd status || status=$?
                else
                        /etc/init.d/samba-ad-dc status || status=$?
                fi
                exit $status
                ;;
        *)
                echo "Usage: /etc/init.d/samba
{start|stop|reload|restart|force-reload|status}"
                exit 1
                ;;
esac
root at debian:~#




--
View this message in context: http://samba.2283325.n4.nabble.com/Upgraded-Samba-no-longer-listening-on-192-168-0-x-tp4718767p4718769.html
Sent from the Samba - General mailing list archive at Nabble.com.



More information about the samba mailing list