summaryrefslogtreecommitdiffstats
path: root/extras/init.d
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-10-04 07:38:11 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-04 07:05:43 -0700
commit63281f698908897218bb6ca427e280217a4b38c2 (patch)
tree22a5f68c69d2e804bcf79030bc57edcdb7879a82 /extras/init.d
parentf02499e16624f29ac2be5531f1c4c298a12f33a8 (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
Diffstat (limited to 'extras/init.d')
-rwxr-xr-xextras/init.d/glusterd-Redhat.in6
1 files changed, 4 insertions, 2 deletions
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
}