summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2011-05-23 16:00:05 +1000
committerMartin Schwenke <martin@meltin.net>2011-08-11 13:56:25 +1000
commit088620b0268063353e706446baa94c17f0a294d8 (patch)
tree2035b73fc5fb3ecd328ba6b950da3a1d5ad4c4dd
parenteef89f83b2228d8afd5996faeaca5a90de6eebea (diff)
downloadsamba-088620b0268063353e706446baa94c17f0a294d8.tar.gz
samba-088620b0268063353e706446baa94c17f0a294d8.tar.xz
samba-088620b0268063353e706446baa94c17f0a294d8.zip
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)
-rwxr-xr-xctdb/config/events.d/60.nfs13
1 files changed, 6 insertions, 7 deletions
diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs
index 90021ffae0..e77804836b 100755
--- a/ctdb/config/events.d/60.nfs
+++ b/ctdb/config/events.d/60.nfs
@@ -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 "$@"
;;