diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-10-14 09:15:24 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-10-14 09:15:24 +1100 |
commit | 070f781e39f2e37a9ffa4613068d732aed736a6a (patch) | |
tree | 7143d4c5e8304c35b1bf0a3d8368e0463deb996b /ctdb/config | |
parent | 3ac5a52969b4cbd12f85643e58da0616f51b440f (diff) | |
download | samba-070f781e39f2e37a9ffa4613068d732aed736a6a.tar.gz samba-070f781e39f2e37a9ffa4613068d732aed736a6a.tar.xz samba-070f781e39f2e37a9ffa4613068d732aed736a6a.zip |
always create the nfs state directories during the monitor event.
this allows us to configure and enable nfs at runtime without having to restart ctdbd
(This used to be ctdb commit f6e39d35713475defaa08a623e194f3f2f8f7d53)
Diffstat (limited to 'ctdb/config')
-rwxr-xr-x | ctdb/config/events.d/61.nfstickle | 5 |
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 |