mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
50.samba
Net serverid wipe can take a bit of time sometimes so background it. Only perform auto start/stop of the managed service on the monitor event (This used to be ctdb commit deba5cbbf7703a1a24ce88a06c73fca056e05521)
This commit is contained in:
parent
99d7e39efc
commit
97a6eccaf7
@ -72,7 +72,7 @@ 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
|
/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
|
||||||
@ -206,7 +206,7 @@ periodic_cleanup() {
|
|||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
|
||||||
[ "$1" = "init" ] || {
|
[ "$1" = "monitor" ] && {
|
||||||
ctdb_start_stop_service
|
ctdb_start_stop_service
|
||||||
ctdb_start_stop_service "winbind"
|
ctdb_start_stop_service "winbind"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user