Re: [Samba] [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
- Date: Mon, 19 Jun 2017 13:59:15 +0200
- From: "L.P.H. van Belle via samba" <samba@xxxxxxxxxxxxxxx>
- Subject: Re: [Samba] [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
First he had problems with the suspend mode.
See samba list subject : [Samba] Upgraded > Samba no longer listening on 192.168.0.x
That got fixed, without changing any startup script, but by adding the interfaces line to smb.conf
Now this one, ( sorry but winfried not attacking you, im attacting nobody )
And yes, that fix was from me to add that line, but not knowing you would hit the other bug.
The best ( only good) fix, change the interface names to ipnumbers smb.conf
Simple and works always.
The problem is, this can be multiple things.
If at boot a DNS server does not resolve.. Result samba not starting.
If a hosts file is wrongly configured.. Result samba not starting.
If the interface errors in up.. Result samba not starting.
Now after adding the ipnumbers in smb.conf you never have startup problems again.
Samba wil always start even if the interface is down.
How, i know, i do this as of samba 3.6 already, as of Debian Wheezy, since thats when it started.
And yes, Rowland would adjust the initscript, but he uses devuan, like jessie but without these files :
In my opinion, you should try to change none of the by debian supplied files.
If it exists, use any include.d folder.
And after upgradeing to debian Stretch use: systemctl edit .....
To change the startup order.
But as far as i did see in the 4.5.x packages ( and 4.6.x ) on debian systemd is correctly setup for samba.
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces@xxxxxxxxxxxxxxx] Namens
> Rowland Penny via samba
> Verzonden: maandag 19 juni 2017 13:22
> Aan: samba@xxxxxxxxxxxxxxx
> Onderwerp: Re: [Samba] [4.2.14-Debian] Smbd not listening on
> 192.168.0.x on cold start
> On Mon, 19 Jun 2017 03:43:13 -0700 (PDT) Winfried via samba
> <samba@xxxxxxxxxxxxxxx> wrote:
> > So it looks like the init script in the Samba package in the Debian
> > repository needs to be edited for a non-DC home server.
> Two things here, it is your computer and you can do what you
> like with it, secondly, I personally do not think that the
> 'samba' init script should try and start a Samba AD DC if
> there is a separate init script to do this.
> I personally would edit the init script, or you could do what
> I do, set the nmbd & smbd init scripts to be started at boot,
> instead of running 'samba' at boot.
> This is all you need on a standalone server, but if your
> Samba machine is a Unix domain member, you will also need
> winbind to be started at boot.
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
To unsubscribe from this list go to the following URL and read the