Show
Ignore:
Timestamp:
07/23/14 15:16:06 (8 years ago)
Author:
andreu
Message:

RECORDFLOW option

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/renetcolSMP/tool/check.sh

    r155 r166  
    11#!/bin/sh 
    22 
    3 num=`ps ax|grep "renetcol" |grep -v grep|grep -v defunct|grep -v check|wc -l|awk '{print $1}'` 
     3num=`ps ax|grep "renetcolSMP" |grep -v grep|grep -v defunct|grep -v check|wc -l|awk '{print $1}'` 
    44 
    5 if [ $num -lt 4 ] 
     5if [ $num -lt 6 ] 
    66then 
    7   killall renetcol 
     7  killall renetcolSMP1 
     8  killall renetcolSMP2 
     9  killall renetcolSMP3 
     10  killall renetcolSMP4 
    811  sleep 1 
    912  killall renetcolSender 
     
    1114  killall renetcolAgg 
    1215  sleep 1 
    13   $1/bin/renetcolMsgCtl $1/bin/renetcol 
     16  $1/src/renetcolMsgCtl $1/src/renetcolSMP1 
     17  $1/src/renetcolMsgCtl $1/src/renetcolSMP2 
     18  $1/src/renetcolMsgCtl $1/src/renetcolSMP3 
     19  $1/src/renetcolMsgCtl $1/src/renetcolSMP4 
    1420  echo "renetcolMsgCtl started" 
    1521  sleep 2 
    16   $1/bin/renetcol 
    17   echo "renetcol restarted" 
    18   $1/bin/renetcolSender $1/bin/renetcol 1 
     22  taskset -c 2 $1/src/renetcolSMP1 
     23  echo "renetco SMP1 restarted" 
     24  taskset -c 4 $1/src/renetcolSMP2 
     25  echo "renetco SMP2 restarted" 
     26  taskset -c 7 $1/src/renetcolSMP3 
     27  echo "renetco SMP3 restarted" 
     28  taskset -c 9 $1/src/renetcolSMP4 
     29  echo "renetco SMP4 restarted" 
     30  $1/src/renetcolSender $1/src/renetcolSMP1 $1/src/renetcolSMP2 $1/src/renetcolSMP3 $1/src/renetcolSMP4 1 
    1931  echo "renetcolSender restarted" 
    20   $1/bin/renetcolAgg 
     32  $1/src/renetcolAgg 
    2133else 
    2234  echo "All is up"