root/branches/renetcolSMP/tool/check.sh

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

RECORDFLOW option

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