mirror of
https://github.com/ceph/ceph
synced 2025-03-07 00:40:00 +00:00
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:
commit
602278dc25
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user