mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
Do not call testparm in /etc/init.d/smb
For SOFS, we do know that we have netbios disabled, and testparm in the ctdb shutdown event locks up due to a locked registry.tdb (This used to be commit 285d55d2a273f18ec9b84011c74a8099cba193c2)
This commit is contained in:
parent
d609ccbab5
commit
c6ecbd92ab
@ -38,11 +38,12 @@ fi
|
||||
[ -w /etc/samba/smb.conf ] || exit 0
|
||||
|
||||
# Check whether "netbios disabled" is true
|
||||
ISNETBIOSDISABLED=$(testparm -s 2>/dev/null | \
|
||||
sed -n '/\[global\]/,/^$/p' | \
|
||||
grep "disable netbios = Yes" | \
|
||||
awk 'BEGIN{FS=" = "}{print $2}')
|
||||
#ISNETBIOSDISABLED=$(testparm -s 2>/dev/null | \
|
||||
# sed -n '/\[global\]/,/^$/p' | \
|
||||
# grep "disable netbios = Yes" | \
|
||||
# awk 'BEGIN{FS=" = "}{print $2}')
|
||||
|
||||
ISNETBIOSDISABLED=Yes
|
||||
|
||||
RETVAL=0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user