root/trunk/tool/check.sh @ 47

Revision 47, 0.9 KB (checked in by andreu, 15 years ago)

merge from tag REL-0.0.11beta

  • Property svn:eol-style set to native
Line 
1#!/bin/sh
2
3num=`ps ax|grep "renetcol" |grep -v grep|grep -v defunct|grep -v check|wc -l|awk '{print $1}'`
4
5if [ $num -lt 4 ]
6then
7  killall renetcol
8  sleep 1
9  killall renetcolSender
10  sleep 1
11  killall renetcolAgg
12  sleep 1
13  /home/maintenance/renetcol-0.0.11beta/src/renetcolMsgCtl /home/maintenance/renetcol-0.0.11beta/src/renetcol
14  echo "renetcolMsgCtl started"
15  sleep 2
16  /home/maintenance/renetcol-0.0.11beta/src/renetcol /home/maintenance/renetcol-0.0.11beta/src/info_routeur_netflow.txt /home/maintenance/renetcol-0.0.11beta/src/donneesblocsadresses2 /home/maintenance/renetcol-0.0.11beta/src/rules.txt
17  echo "renetcol restarted"
18  /home/maintenance/renetcol-0.0.11beta/src/renetcolSender /home/maintenance/renetcol-0.0.11beta/src/renetcol 1 /home/maintenance/renetcol-0.0.11beta/src/rules.txt
19  echo "renetcolSender restarted"
20  /home/maintenance/renetcol-0.0.11beta/src/renetcolAgg
21else
22  echo "All is up"
23fi
Note: See TracBrowser for help on using the browser.