diff options
author | Amar Tumballi <amar@gluster.com> | 2010-10-04 07:38:11 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-04 07:05:43 -0700 |
commit | 63281f698908897218bb6ca427e280217a4b38c2 (patch) | |
tree | 22a5f68c69d2e804bcf79030bc57edcdb7879a82 | |
parent | f02499e16624f29ac2be5531f1c4c298a12f33a8 (diff) |
/etc/init.d/glusterd (for RPM based distros), fix output format
Thanks to Bernard Li <bernard@vanhpc.org> for the patch
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1677 (Fix output formatting for Red Hat init script)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1677
-rwxr-xr-x | extras/init.d/glusterd-Redhat.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extras/init.d/glusterd-Redhat.in b/extras/init.d/glusterd-Redhat.in index 15da246870a..50ee5db7b8a 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 } |