From 63281f698908897218bb6ca427e280217a4b38c2 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 4 Oct 2010 07:38:11 +0000 Subject: /etc/init.d/glusterd (for RPM based distros), fix output format Thanks to Bernard Li for the patch Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 1677 (Fix output formatting for Red Hat init script) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1677 --- extras/init.d/glusterd-Redhat.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extras/init.d') diff --git a/extras/init.d/glusterd-Redhat.in b/extras/init.d/glusterd-Redhat.in index 15da24687..50ee5db7b 100755 --- a/extras/init.d/glusterd-Redhat.in +++ b/extras/init.d/glusterd-Redhat.in @@ -16,17 +16,19 @@ RETVAL=0 # Start the service $BASE start() { - echo $"Starting $BASE:" + echo -n $"Starting $BASE:" daemon $GLUSTERD RETVAL=$? + echo [ $RETVAL -ne 0 ] && exit $RETVAL } # Stop the service $BASE stop() { - echo $"Stopping $BASE:" + echo -n $"Stopping $BASE:" killproc $BASE + echo } -- cgit