root/trunk/tool/check.sh @ 36

Revision 36, 0.9 KB (checked in by andreu, 16 years ago)

ticket #1 #2 #7 closed - release 0.0.9beta

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