summaryrefslogtreecommitdiffstats
path: root/ctdb/config
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/config')
-rwxr-xr-xctdb/config/events.d/61.nfstickle5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/config/events.d/61.nfstickle b/ctdb/config/events.d/61.nfstickle
index 60c13bc61d..332d0062db 100755
--- a/ctdb/config/events.d/61.nfstickle
+++ b/ctdb/config/events.d/61.nfstickle
@@ -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