summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-19 16:08:04 +0200
committerMichael Adam <obnox@samba.org>2008-08-13 11:54:02 +0200
commitc6ecbd92abc02018058a9cba72240044eca63578 (patch)
treef41c673e3bddf78f294e6ba07025d530be01bd30
parentd609ccbab5cd0391687d72dad85b8cee6b38c0a3 (diff)
downloadsamba-c6ecbd92abc02018058a9cba72240044eca63578.tar.gz
samba-c6ecbd92abc02018058a9cba72240044eca63578.tar.bz2
samba-c6ecbd92abc02018058a9cba72240044eca63578.zip
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)
-rw-r--r--packaging/RHEL-CTDB/setup/smb.init9
1 files changed, 5 insertions, 4 deletions
diff --git a/packaging/RHEL-CTDB/setup/smb.init b/packaging/RHEL-CTDB/setup/smb.init
index af85b2c079..4dd5b23ae7 100644
--- a/packaging/RHEL-CTDB/setup/smb.init
+++ b/packaging/RHEL-CTDB/setup/smb.init
@@ -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