From: Mao Zhongyi Date: Thu, 7 Jun 2018 07:21:23 +0000 (+0800) Subject: mstop.sh: Fix print information X-Git-Tag: v14.0.1~1137^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0bf97047cfd2cbcb5de3cd4b438f61fd9a114196;p=ceph.git mstop.sh: Fix print information The print information of mstop.sh is as following: entity=osd pid=16347 name=osd.1 kill 16347...kill 16347...16462 pid=16462 entity=osd pid=16462 name=osd.2 kill 16462...kill 16462...[root@maozy build]# It's not clear enough, so fix it. Signed-off-by: Mao Zhongyi --- diff --git a/src/mstop.sh b/src/mstop.sh index 28189815fdcc..36daabe46817 100755 --- a/src/mstop.sh +++ b/src/mstop.sh @@ -30,7 +30,6 @@ fi for pidfile in $pfiles; do pid=`cat $pidfile` fname=`echo $pidfile | sed 's/.*\///g'` - echo $pid [ "$pid" == "" ] && exit [ $pid -eq 0 ] && exit echo pid=$pid @@ -41,7 +40,7 @@ for pidfile in $pfiles; do echo entity=$entity pid=$pid name=$name while ps -p $pid -o args= | grep -q -e $entity $extracheck ; do cmd="kill $signal $pid" - printf "$cmd..." + printf "$cmd...\n" $cmd sleep 1 continue