Merge commit 'martins/master'
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 30 Aug 2010 08:22:05 +0000 (18:22 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 30 Aug 2010 08:22:05 +0000 (18:22 +1000)
1  2 
config/events.d/60.nfs

index 15c2b899c1b5411d2b329f6521e633e7717244d9,7f994e77b180e6788e800487d32b87eaf6978db3..6acc8897a2582c1132bd0a140b69406809f97537
@@@ -4,10 -4,21 +4,11 @@@
  start_nfs() {
        /bin/mkdir -p $CTDB_BASE/state/nfs
        /bin/mkdir -p $CTDB_BASE/state/statd/ip
 -      /bin/mkdir -p $STATD_SHARED_DIRECTORY
        startstop_nfs stop
        startstop_nfs start
+       echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
  }
  
 -reconfigure_nfs() {
 -      # always restart the lockmanager so that we start with a clusterwide
 -      # graceperiod when ip addresses has changed
 -      [ -x $CTDB_BASE/statd-callout ] && {
 -              $CTDB_BASE/statd-callout notify &
 -      } >/dev/null 2>&1
 -
 -}
 -
  . $CTDB_BASE/functions
  
  service_name="nfs"