summaryrefslogtreecommitdiffstats
path: root/extras/stop-all-gluster-processes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extras/stop-all-gluster-processes.sh')
-rwxr-xr-xextras/stop-all-gluster-processes.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/stop-all-gluster-processes.sh b/extras/stop-all-gluster-processes.sh
index 6c81a301c72..087afa4cf22 100755
--- a/extras/stop-all-gluster-processes.sh
+++ b/extras/stop-all-gluster-processes.sh
@@ -13,7 +13,7 @@ function main()
# processes are not having a pid file, so get it through 'ps' and
# handle these processes
gsyncpid=`ps aux | grep gluster | grep gsync | awk '{print $2}'`;
- test -n $gsyncpid && kill -TERM $gsyncpid;
+ test -n "$gsyncpid" && kill -TERM $gsyncpid;
sleep 5;
@@ -27,7 +27,7 @@ function main()
# handle 'KILL' of geo-replication
gsyncpid=`ps aux | grep gluster | grep gsync | awk '{print $2}'`;
- test -n $gsyncpid && kill -KILL $gsyncpid;
+ test -n "$gsyncpid" && kill -KILL $gsyncpid;
}
main "$@";