always create the nfs state directories during the monitor event.
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 13 Oct 2009 22:15:24 +0000 (09:15 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 13 Oct 2009 22:15:24 +0000 (09:15 +1100)
this allows us to configure and enable nfs at runtime without having to restart ctdbd

config/events.d/61.nfstickle

index 60c13bc61d9b174df84346e05176241f8eb1ff0d..332d0062db1c2dab49a10323e53c11bcb03291c3 100755 (executable)
@@ -56,6 +56,11 @@ case $cmd in
        ;;
 
      monitor)
+        # always create these direcotries since NFS might be enabled at runtime
+       # and we dont want to restart ctdbd
+       mkdir -p $CTDB_BASE/state/nfstickle
+       mkdir -p $NFS_TICKLE_SHARED_DIRECTORY/`hostname`
+
        mydir=$NFS_TICKLE_SHARED_DIRECTORY/`hostname`
        rm -f $mydir/*
        # record our connections to shared storage