]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mstop.sh: Fix print information 22467/head
authorMao Zhongyi <maozy.fnst@cn.fuitsu.com>
Thu, 7 Jun 2018 07:21:23 +0000 (15:21 +0800)
committerMao Zhongyi <maozy.fnst@cn.fujitsu.com>
Mon, 11 Jun 2018 10:44:58 +0000 (18:44 +0800)
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 <maozy.fnst@cn.fujitsu.com>
src/mstop.sh

index 28189815fdccd517cdb037fa80b3f5a58d791ab4..36daabe46817aa8c2031d3b5892e2f4fabd14581 100755 (executable)
@@ -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