Rev 729: don't retstart statd when we don't need to in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Mon Jan 7 03:05:31 GMT 2008
------------------------------------------------------------
revno: 729
revision-id:tridge at samba.org-20080107030530-cv6i3j5ue7z3sk3t
parent: tridge at samba.org-20080106022517-j5all4qe0wo19bv3
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge.stable
timestamp: Mon 2008-01-07 14:05:30 +1100
message:
don't retstart statd when we don't need to
modified:
config/events.d/60.nfs nfs-20070601141008-hy3h4qgbk1jd2jci-1
=== modified file 'config/events.d/60.nfs'
--- a/config/events.d/60.nfs 2007-11-16 02:37:27 +0000
+++ b/config/events.d/60.nfs 2008-01-07 03:05:30 +0000
@@ -55,6 +55,9 @@
;;
recovered)
+ # if no IPs have changed then don't need to restart statd
+ [ -f $CTDB_BASE/state/statd/restart ] || exit 0;
+
# always restart the lockmanager so that we start with a clusterwide
# graceperiod when ip addresses has changed
[ -x $CTDB_BASE/statd-callout ] && {
More information about the samba-cvs
mailing list