diff options
author | Meghana Madhusudhan <mmadhusu@redhat.com> | 2014-07-06 17:30:50 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-07-09 23:38:04 -0700 |
commit | 2e831d70c754800919f479f182ffb00562da5219 (patch) | |
tree | be6d8243c7a42bf70e24a6c8948239bfc72b5bf9 /extras/hook-scripts/set | |
parent | f5f972189b05515eaee9df2aa5afab6165887120 (diff) |
Changing the position of nfs-ganesha.log
Changing the position of ganesha.log from /tmp/ganesha.log
to /var/log/nfs-ganesha/ganesha.nfsd.log
Change-Id: Iff95fbc7fc690f4fdbc1789d84f3e41aaca9045b
BUG: 1116723
Signed-off-by: Meghana Madhusudhan <mmadhusu@redhat.com>
Reviewed-on: http://review.gluster.org/8249
Reviewed-by: soumya k <skoduri@redhat.com>
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'extras/hook-scripts/set')
-rwxr-xr-x | extras/hook-scripts/set/post/S31ganesha-set.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/extras/hook-scripts/set/post/S31ganesha-set.sh b/extras/hook-scripts/set/post/S31ganesha-set.sh index 0f45ef4cac3..4e7e7191cc2 100755 --- a/extras/hook-scripts/set/post/S31ganesha-set.sh +++ b/extras/hook-scripts/set/post/S31ganesha-set.sh @@ -5,7 +5,8 @@ VOL= declare -i EXPORT_ID GANESHA_DIR="/var/lib/glusterfs-ganesha" CONF1="$GANESHA_DIR/nfs-ganesha.conf" -LOG="/tmp/ganesha.log" +GANESHA_LOG_DIR="/var/log/nfs-ganesha/" +LOG="$GANESHA_LOG_DIR/ganesha.nfsd.log" gnfs="enabled" enable_ganesha="" host_name="none" @@ -227,6 +228,12 @@ function check_ganesha_dir() mkdir $GANESHA_DIR/exports check_cmd_status `echo $?` fi + if [ ! -d "$GANESHA_LOG_DIR" ] ; + then + mkdir $GANESHA_LOG_DIR + check_cmd_status `echo $?` + fi + } |