mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
Eventscripts: in 60.nfs move statd-notify code to service_reconfigure().
This means that it now occurs on every reconfigure event. As a result the ipreallocated event is removed. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c45a89418ba733ff91d48340d72bdb6d2ef80051)
This commit is contained in:
parent
eef89f83b2
commit
088620b026
@ -18,6 +18,12 @@ service_stop ()
|
||||
service_reconfigure ()
|
||||
{
|
||||
startstop_nfs restart
|
||||
|
||||
# if the ips have been reallocated, we must restart the lockmanager
|
||||
# across all nodes and ping all statd listeners
|
||||
[ -x $CTDB_BASE/statd-callout ] && {
|
||||
$CTDB_BASE/statd-callout notify &
|
||||
} >/dev/null 2>&1
|
||||
}
|
||||
|
||||
loadconfig
|
||||
@ -191,13 +197,6 @@ case "$1" in
|
||||
}
|
||||
;;
|
||||
|
||||
ipreallocated)
|
||||
# if the ips have been reallocated, we must restart the lockmanager
|
||||
# across all nodes and ping all statd listeners
|
||||
[ -x $CTDB_BASE/statd-callout ] && {
|
||||
$CTDB_BASE/statd-callout notify &
|
||||
} >/dev/null 2>&1
|
||||
;;
|
||||
*)
|
||||
ctdb_standard_event_handler "$@"
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user