From fd32c05f461efd48e46d879cdba85a2fe894a2e0 Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Fri, 21 Dec 2012 12:23:19 +0530 Subject: extras: Changed the exit status in start function to 0. Problem: We were returning "1" when "glusterd start" was being called with service already running. As per http://refspecs.linuxbase.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html we should consider it to be a success case and return 0. Fix: Just changed the return status from 1 to 0. Change-Id: I8d6d2014f0c32ba53834503e721e2a71df7330a8 BUG: 845653 Signed-off-by: Raghavendra Talur Reviewed-on: http://review.gluster.org/4348 Reviewed-by: Niels de Vos Tested-by: Gluster Build System --- extras/init.d/glusterd-Redhat.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/init.d/glusterd-Redhat.in b/extras/init.d/glusterd-Redhat.in index 5c92a447..8b17eb18 100755 --- a/extras/init.d/glusterd-Redhat.in +++ b/extras/init.d/glusterd-Redhat.in @@ -35,7 +35,7 @@ start() status=$? if [ $status -eq 0 ]; then echo "glusterd service is already running with pid $PID" - exit 1 + exit 0 else echo -n $"Starting $BASE:" daemon $GLUSTERD -- cgit