What appears to be happening is that the first time nmbd gets run testparm fails (because pid dir /var/run/samba doesn't exist yet) so nmbd is not started.
After that smbd gets run and its pre-init will create /var/run/samba. So the next time nmbd's pre-init script will work.
What appears to be happening is that the first time nmbd gets run testparm fails (because pid dir /var/run/samba doesn't exist yet) so nmbd is not started.
After that smbd gets run and its pre-init will create /var/run/samba. So the next time nmbd's pre-init script will work.