From df77489477f0c7f9597c1cf35bd53e7360cf46d9 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 26 Mar 2010 17:33:51 +0100 Subject: [PATCH] events:50.samba: wipe the local part of the serverid db before starting winbind/smnd/nmbd This is necessary for the new serverid approach. Michael (This used to be ctdb commit 8956f32e571093db7f285b83e4dd32960f8afc7c) --- ctdb/config/events.d/50.samba | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ctdb/config/events.d/50.samba b/ctdb/config/events.d/50.samba index 5c10b19ef08..23dd060682a 100755 --- a/ctdb/config/events.d/50.samba +++ b/ctdb/config/events.d/50.samba @@ -53,7 +53,7 @@ start_samba() { } } - # restart the winbind service + # make sure winbind is not already started check_ctdb_manages_winbind [ "$CTDB_MANAGES_WINBIND" = "yes" ] && { service "$CTDB_SERVICE_WINBIND" stop > /dev/null 2>&1 @@ -62,6 +62,13 @@ start_samba() { # make absolutely sure winbindd is dead killall -q -9 winbindd } + + } + + /usr/bin/net serverid wipe + + # start the winbind service + [ "$CTDB_MANAGES_WINBIND" = "yes" ] && { service "$CTDB_SERVICE_WINBIND" start }