diff options
author | Kaleb S KEITHLEY <kkeithle@redhat.com> | 2016-05-17 11:10:56 -0400 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-05-18 06:55:15 -0700 |
commit | 72c3acb4113921857c586f77d60d2f4eafc53d76 (patch) | |
tree | cedc9cdb67c0e87d22fe1d14a23bf72b21e4490c /extras/stop-all-gluster-processes.sh | |
parent | 2321e8968eadfc34fce3a0026aafc8fa18e0bbb5 (diff) |
scripts: bash-isms in scripts
Backport of
> http://review.gluster.org/#/c/14401/
> BUG: 1336853
> Change-Id: I05f8718fb73c16dbb37c1f7460bb7b55cc0ffe97
Change-Id: I05f8718fb73c16dbb37c1f7460bb7b55cc0ffe97
BUG: 1336854
Reported-by: Patrick Matthäi <pmatthaei@debian.org>
Signed-off-by: Kaleb S KEITHLEY <kkeithle@redhat.com>
Change-Id: I2ab6b4089e658f766e0c73fa7de0579b48a30c49
Reviewed-on: http://review.gluster.org/14402
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Prasanna Kumar Kalever <pkalever@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'extras/stop-all-gluster-processes.sh')
-rwxr-xr-x | extras/stop-all-gluster-processes.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extras/stop-all-gluster-processes.sh b/extras/stop-all-gluster-processes.sh index 5bc58b30f4e..356a2a63059 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 |