summaryrefslogtreecommitdiffstats
path: root/extras/hook-scripts/reset/post
diff options
context:
space:
mode:
authorMeghana <mmadhusu@redhat.com>2014-05-12 12:26:18 +0000
committerVijay Bellur <vbellur@redhat.com>2014-05-16 10:01:36 -0700
commit6a9a52c932bc5be469af119e5b0b3afb8046f625 (patch)
treee7f4b3917e41ea97825fa514adfae080bf18010f /extras/hook-scripts/reset/post
parent05a5ffe97222ca7c49828f0d762a47e85411ab61 (diff)
Hooks:Modified S31ganesha-set.sh to enable dynamic exports via NFS-ganesha
Dbus signals have to be sent to add and remove exports on the fly, without restarting nfs-ganesha server. Adding those signals in the hook script to enable the same. Adding another to check to enable IP modification, without restarting nfs-ganesha.Adding checks to find the configuration file in /etc/glusterfs-ganesha. Removing nested volume set options. This introduces some issues that will be documented clearly. Signed-off-by: Meghana <mmadhusu@redhat.com> Change-Id: I28f7983f2d18529dc813ddc9773b33c6caee1ad4 BUG: 1095656 Signed-off-by: Meghana <mmadhusu@redhat.com> Reviewed-on: http://review.gluster.org/7709 Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'extras/hook-scripts/reset/post')
-rwxr-xr-xextras/hook-scripts/reset/post/S31ganesha-reset.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/hook-scripts/reset/post/S31ganesha-reset.sh b/extras/hook-scripts/reset/post/S31ganesha-reset.sh
index 68411e4bd95..a683af5c0c0 100755
--- a/extras/hook-scripts/reset/post/S31ganesha-reset.sh
+++ b/extras/hook-scripts/reset/post/S31ganesha-reset.sh
@@ -25,8 +25,8 @@ if ps aux | grep -q "[g]anesha.nfsd"
then
kill -s TERM `cat /var/run/ganesha.pid`
sleep 10
- rm -rf /var/lib/ganesha/exports
- rm -rf /var/lib/ganesha/export_added
+ rm -rf /var/lib/glusterfs-ganesha/exports
+ rm -rf /var/lib/glusterfs-ganesha/.export_added
sed -i /conf/d /var/lib/ganesha/nfs-ganesha.conf
if [ "1" = $(is_volume_started "$VOL") ];
then