git.samba.org
/
tridge
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70e7781
)
always create the nfs state directories during the monitor event.
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 13 Oct 2009 22:15:24 +0000
(09:15 +1100)
committer
Ronnie 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
patch
|
blob
|
history
diff --git
a/config/events.d/61.nfstickle
b/config/events.d/61.nfstickle
index 60c13bc61d9b174df84346e05176241f8eb1ff0d..332d0062db1c2dab49a10323e53c11bcb03291c3 100755
(executable)
--- a/
config/events.d/61.nfstickle
+++ b/
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