git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d609ccb
)
Do not call testparm in /etc/init.d/smb
author
Volker Lendecke
<vl@samba.org>
Mon, 19 May 2008 14:08:04 +0000
(16:08 +0200)
committer
Michael 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
(This used to be commit
285d55d2a273f18ec9b84011c74a8099cba193c2
)
packaging/RHEL-CTDB/setup/smb.init
patch
|
blob
|
history
diff --git
a/packaging/RHEL-CTDB/setup/smb.init
b/packaging/RHEL-CTDB/setup/smb.init
index af85b2c079a6ff00caad691bc86bc017bb30d0d8..4dd5b23ae7bf2c92cd507d45f80e83cd70cf6314 100644
(file)
--- 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