Merge pull request #13351 from tchaikov/wip-init-ceph-newline

init-ceph: print trailing n in "status" output

Reviewed-by: Nathan Cutler <nculter@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-02-10 10:40:36 -06:00 committed by GitHub
commit 602278dc25

View File

@ -462,7 +462,8 @@ for name in $what; do
status)
if daemon_is_running $name ceph-$type $id $pid_file; then
printf "$name: running "
do_cmd "$BINDIR/ceph --admin-daemon $asok version 2>/dev/null" || echo unknown
do_cmd "$BINDIR/ceph daemon $name version 2>/dev/null" || printf unknown
printf "\n"
elif [ -e "$pid_file" ]; then
# daemon is dead, but pid file still exists
echo "$name: dead."