From 2df72780e473709128a4f5d7f274a9063b288252 Mon Sep 17 00:00:00 2001 From: Kaleb S KEITHLEY Date: Tue, 17 May 2016 11:06:07 -0400 Subject: scripts: bash-isms in scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I05f8718fb73c16dbb37c1f7460bb7b55cc0ffe97 BUG: 1336853 Reported-by: Patrick Matthäi Signed-off-by: Kaleb S KEITHLEY Reviewed-on: http://review.gluster.org/14401 NetBSD-regression: NetBSD Build System Reviewed-by: Niels de Vos Smoke: Gluster Build System Reviewed-by: Kotresh HR CentOS-regression: Gluster Build System --- extras/stop-all-gluster-processes.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extras') 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 -- cgit