One of the reasons why I do not understand what the PLi recipe for Samba is that much crippled for.
Samba 4.4.x has about 20 MB ... was it really necessary to save 48 kiloBytes by ripping out testparm and smbstatus?
If you look at the Debian startup scripts for Samba, you will notice that testparm is required to know before-hand if NetBIOS is really wanted ... if not, nmbd doesn't get started.
"disable netbios = Yes" alone inside smb.conf does nothing, you actually
have to parse smb.conf before and skip starting nmbd if netbios should be disabled.
Stolen right-away from Debian (Only slightly modified for different logging):
start-stop-daemon --start --quiet --exec $smbd
NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null || true`
if [ "$NMBD_DISABLED" != "Yes" ]; then
echo -n " nmbd"
start-stop-daemon --start --quiet --exec $nmbd
fi
wsdd also needs testparm, else it would have to make wild guesses about hostname and workgroup (or include a 50 kB parser for smb.conf and its includes
) ...