diff options
Diffstat (limited to 'extras/hook-scripts/reset/post/S31ganesha-reset.sh')
-rwxr-xr-x | extras/hook-scripts/reset/post/S31ganesha-reset.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/extras/hook-scripts/reset/post/S31ganesha-reset.sh b/extras/hook-scripts/reset/post/S31ganesha-reset.sh index c0be3f3841d..8191d960592 100755 --- a/extras/hook-scripts/reset/post/S31ganesha-reset.sh +++ b/extras/hook-scripts/reset/post/S31ganesha-reset.sh @@ -17,6 +17,10 @@ function parse_args () { shift GLUSTERD_WORKDIR=$1 ;; + *) + shift + break + ;; esac shift done @@ -29,7 +33,7 @@ function is_volume_started () { } parse_args $@ -if ps auxwww | grep -q "[g]anesha.nfsd" +if ps aux | grep -q "[g]anesha.nfsd" then kill -s TERM `cat /var/run/ganesha.pid` sleep 10 |