don't retstart statd when we don't need to
authorAndrew Tridgell <tridge@samba.org>
Mon, 7 Jan 2008 03:05:30 +0000 (14:05 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 7 Jan 2008 03:05:30 +0000 (14:05 +1100)
config/events.d/60.nfs

index ed9d6da63be1282383ce230f927f9819967babcd..5699257992f0fb1652da766070139c480b0dbfbe 100755 (executable)
@@ -55,6 +55,9 @@ case $cmd in
        ;;
 
      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 ] && {