summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorKaleb S KEITHLEY <kkeithle@redhat.com>2016-05-17 11:06:07 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-06-24 09:42:31 -0700
commitcdaa5dd7f91d93fce3d900e4321dd83d021e96dd (patch)
tree7b40c7c607c347b3b37a0fa30eaeaacf7201d397 /extras
parent6a9a48e4d70a56167c0f1e8432bba9050264ab97 (diff)
scripts: bash-isms in scripts
Backport of http://review.gluster.org/14401/ Change-Id: I05f8718fb73c16dbb37c1f7460bb7b55cc0ffe97 BUG: 1223947 Reported-by: Patrick Matthäi <pmatthaei@debian.org> Signed-off-by: Kotresh HR <khiremat@redhat.com> Original-Author: Kaleb S KEITHLEY <kkeithle@redhat.com> (cherry picked from commit 2df72780e473709128a4f5d7f274a9063b288252) Reviewed-on: http://review.gluster.org/14774 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'extras')
-rwxr-xr-xextras/stop-all-gluster-processes.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/extras/stop-all-gluster-processes.sh b/extras/stop-all-gluster-processes.sh
index 5bc58b3..356a2a6 100755
--- a/extras/stop-all-gluster-processes.sh
+++ b/extras/stop-all-gluster-processes.sh
@@ -4,7 +4,7 @@
errors=0
# find the mounts and return their pids
-function get_mount_pids()
+get_mount_pids()
{
local opts
local pid
@@ -20,7 +20,7 @@ function get_mount_pids()
}
# handle mount processes i.e. 'glusterfs'
-function kill_mounts()
+kill_mounts()
{
local signal=${1}
local pid
@@ -33,7 +33,7 @@ function kill_mounts()
}
# handle brick processes and node services
-function kill_bricks_and_services()
+kill_bricks_and_services()
{
local signal=${1}
local pidfile
@@ -50,7 +50,7 @@ function kill_bricks_and_services()
# for geo-replication, only 'monitor' has pid file written, other
# processes are not having a pid file, so get it through 'ps' and
# handle these processes
-function kill_georep_gsync()
+kill_georep_gsync()
{
local signal=${1}
@@ -64,7 +64,7 @@ function kill_georep_gsync()
fi
}
-function main()
+main()
{
kill_mounts TERM
kill_bricks_and_services TERM