[Samba] [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
Winfried
codecomplete at free.fr
Mon Jun 19 09:42:11 UTC 2017
Thanks for the infos.
I'm running 4.2.14. I always use apt-get to install/upgrade packages, so the
init script comes standard from the official repository:
===============
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
===============
Should I just comment out the "/etc/init.d/samba-ad-dc" lines in start/stop,
or should I also edit smb.conf to edit the "interface" command?
--
View this message in context: http://samba.2283325.n4.nabble.com/4-2-14-Debian-Smbd-not-listening-on-192-168-0-x-on-cold-start-tp4720131p4720150.html
Sent from the Samba - General mailing list archive at Nabble.com.
More information about the samba
mailing list