
On Tue, Aug 06, 2013 at 07:57:56AM -0400, Anton Aylward wrote:
lynn said the following on 08/06/2013 07:46 AM: [ <8 ]
fwiw, here's the one from the 4.0.8 source:
[Unit] Description=Samba NMB Daemon After=syslog.target network.target
[Service] Type=forking PIDFile=/run/nmbd.pid EnvironmentFile=-/etc/sysconfig/samba ExecStart=/usr/sbin/nmbd $NMBDOPTIONS ExecReload=/usr/bin/kill -HUP $MAINPID
[Install] WantedBy=multi-user.target
I think the OP's problem is that the network isn't running when nmb is called. Try sticking it in /etc/init.d/boot.local perhaps? Almost certain the network is up by then.
No, don't put that (the above) in /etc/init.d/boot.local - its a unit file not a script, it goes in /etc/systemd/system/
Yes, if the network isn't up, then the unit file as above makes it very clear with the "After=" line that the network is necessary.
One point remains: what about smbd? Is that dependent on nmbd running? Which should start first?
nmbd is legacy and not a must have. That's why the smb init script has a Should-Start to the nmb service.
Oh, and a 'Spanish inquisition' point: presumably "$NMBDOPTIONS" comes from somewhere like /etc/sysconfig/nmbd ...
EnvironmentFile=-/etc/sysconfig/samba as quoted before. For SUSE we're able to reuse the existing upstream files from packaging/systemd/ Submit request against network:samba:STABLE/samba in the OBS are always welcome. Cheers, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany