1
0
tükörképe a: https://github.com/dockur/windows.git synced 2026-06-11 12:49:36 +08:00

fix: Error logging for Samba daemon (#562)

This commit is contained in:
Kroese
2024-06-04 15:55:28 +02:00
committed by GitHub
szülő 71b2c5c110
commit d0848b36cf
+8 -3
Fájl megtekintése
@@ -75,7 +75,10 @@ fi
echo " force group = root" echo " force group = root"
} > "/etc/samba/smb.conf" } > "/etc/samba/smb.conf"
! smbd && smbd --debug-stdout if ! smbd; then
error "Samba daemon failed to start!"
smbd -i --debug-stdout || true
fi
legacy="" legacy=""
@@ -86,9 +89,11 @@ if [ -f "$STORAGE/windows.old" ]; then
fi fi
if [ -n "$legacy" ]; then if [ -n "$legacy" ]; then
[[ "$DHCP" == [Yy1]* ]] && return 0
# Enable NetBIOS on Windows XP and lower # Enable NetBIOS on Windows XP and lower
! nmbd && nmbd --debug-stdout if ! nmbd; then
error "NetBIOS daemon failed to start!"
nmbd -i --debug-stdout || true
fi
else else
# Enable Web Service Discovery on Vista and up # Enable Web Service Discovery on Vista and up
wsdd -i "$interface" -p -n "$hostname" & wsdd -i "$interface" -p -n "$hostname" &