1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

only run "serverid wipe" if we are actually running samba.

we dont need to run this on systems where we do run winbind but not samba

(This used to be ctdb commit fcb9e8d1e1c78439ea42adb8b05ad84fbca7f724)
This commit is contained in:
Ronnie Sahlberg 2010-12-08 11:08:19 +11:00
parent 4b9e5fbe46
commit c26c6a01cf

View File

@ -63,8 +63,6 @@ start_samba() {
}
/usr/bin/net serverid wipe
# start the winbind service
[ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
service "$CTDB_SERVICE_WINBIND" start
@ -74,6 +72,8 @@ start_samba() {
# the number of smbd processes will mean that it leaves few cycles for
# anything else
[ "$CTDB_MANAGES_SAMBA" = "yes" ] && {
/usr/bin/net serverid wipe
nice_service "$CTDB_SERVICE_NMB" start
nice_service "$CTDB_SERVICE_SMB" start
}