Do not call testparm in /etc/init.d/smb
authorVolker Lendecke <vl@samba.org>
Mon, 19 May 2008 14:08:04 +0000 (16:08 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:02 +0000 (11:54 +0200)
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

packaging/RHEL-CTDB/setup/smb.init

index af85b2c079a6ff00caad691bc86bc017bb30d0d8..4dd5b23ae7bf2c92cd507d45f80e83cd70cf6314 100644 (file)
@@ -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