root/branches/renetcolSMP/tool/check.sh @ 166

Revision 166, 1.0 KB (checked in by andreu, 8 years ago)

RECORDFLOW option

  • Property svn:eol-style set to native
RevLine 
[31]1#!/bin/sh
2
[166]3num=`ps ax|grep "renetcolSMP" |grep -v grep|grep -v defunct|grep -v check|wc -l|awk '{print $1}'`
[31]4
[166]5if [ $num -lt 6 ]
[36]6then
[166]7  killall renetcolSMP1
8  killall renetcolSMP2
9  killall renetcolSMP3
10  killall renetcolSMP4
[36]11  sleep 1
[31]12  killall renetcolSender
13  sleep 1
14  killall renetcolAgg
15  sleep 1
[166]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
[31]20  echo "renetcolMsgCtl started"
[36]21  sleep 2
[166]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
[31]31  echo "renetcolSender restarted"
[166]32  $1/src/renetcolAgg
[31]33else
34  echo "All is up"
35fi
Note: See TracBrowser for help on using the browser.