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:
parent
4b9e5fbe46
commit
c26c6a01cf
@ -63,8 +63,6 @@ start_samba() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/usr/bin/net serverid wipe
|
|
||||||
|
|
||||||
# start the winbind service
|
# start the winbind service
|
||||||
[ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
|
[ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
|
||||||
service "$CTDB_SERVICE_WINBIND" start
|
service "$CTDB_SERVICE_WINBIND" start
|
||||||
@ -74,6 +72,8 @@ start_samba() {
|
|||||||
# the number of smbd processes will mean that it leaves few cycles for
|
# the number of smbd processes will mean that it leaves few cycles for
|
||||||
# anything else
|
# anything else
|
||||||
[ "$CTDB_MANAGES_SAMBA" = "yes" ] && {
|
[ "$CTDB_MANAGES_SAMBA" = "yes" ] && {
|
||||||
|
/usr/bin/net serverid wipe
|
||||||
|
|
||||||
nice_service "$CTDB_SERVICE_NMB" start
|
nice_service "$CTDB_SERVICE_NMB" start
|
||||||
nice_service "$CTDB_SERVICE_SMB" start
|
nice_service "$CTDB_SERVICE_SMB" start
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user