From 6a9a52c932bc5be469af119e5b0b3afb8046f625 Mon Sep 17 00:00:00 2001 From: Meghana Date: Mon, 12 May 2014 12:26:18 +0000 Subject: 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 Change-Id: I28f7983f2d18529dc813ddc9773b33c6caee1ad4 BUG: 1095656 Signed-off-by: Meghana Reviewed-on: http://review.gluster.org/7709 Reviewed-by: Krishnan Parthasarathi Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- extras/hook-scripts/reset/post/S31ganesha-reset.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extras/hook-scripts/reset') 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 -- cgit