* [Bismark-commits] rev 335 - trunk/mserver/etc trunk/mserver/scripts
@ 2011-05-16 15:28 walter
0 siblings, 0 replies; only message in thread
From: walter @ 2011-05-16 15:28 UTC (permalink / raw)
To: bismark-commits
Author: walter
Date: 2011-05-16 17:28:01 +0200 (Mon, 16 May 2011)
New Revision: 335
Modified:
trunk/mserver/etc/mserver.conf
trunk/mserver/scripts/daemons
trunk/mserver/scripts/itg_up
Log:
fixed ITGRecv and probeserver
Modified: trunk/mserver/etc/mserver.conf
===================================================================
--- trunk/mserver/etc/mserver.conf 2011-05-13 13:44:21 UTC (rev 334)
+++ trunk/mserver/etc/mserver.conf 2011-05-16 15:28:01 UTC (rev 335)
@@ -7,7 +7,7 @@
# D-ITG options
ITG_DW_PORT=1430
-ITG_UP_PORT=8889
+ITG_UP_PORT=9000
# Traceroute options
RTR_PORT=1100
Modified: trunk/mserver/scripts/daemons
===================================================================
--- trunk/mserver/scripts/daemons 2011-05-13 13:44:21 UTC (rev 334)
+++ trunk/mserver/scripts/daemons 2011-05-16 15:28:01 UTC (rev 335)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bashsudo netstat -lntp | grep -q
# Script to check/respawn measurement services
# Load configuration
@@ -8,6 +8,6 @@
pgrep -f TCP-LISTEN:$RTR_PORT >/dev/null || ~/scripts/rtr
pgrep -f TCP-LISTEN:$ITG_DW_PORT >/dev/null || ~/scripts/itg_dw
pgrep -f TCP-LISTEN:$UPRATE_PORT >/dev/null || ~/scripts/uprate
-pgrep -f ITGRecv >/dev/null || ~/scripts/itg_up
-pgrep -f probeserver >/dev/null || ( ~/bin/probeserver >> /tmp/spserver.log 2>&1 & )
+sudo netstat -lntp | grep -q $ITG_UP_PORT.*ITGRecv || ~/scripts/itg_up
+sudo netstat -lntp | grep -q 55005.*probeserver || ( killall probeserver ; ~/bin/probeserver >> /tmp/spserver.log 2>&1 & )
Modified: trunk/mserver/scripts/itg_up
===================================================================
--- trunk/mserver/scripts/itg_up 2011-05-13 13:44:21 UTC (rev 334)
+++ trunk/mserver/scripts/itg_up 2011-05-16 15:28:01 UTC (rev 335)
@@ -6,6 +6,6 @@
if [ $ITG_UP_PORT -le 1024 ]; then
( sudo ~/bin/ITGRecv -Si $IFNAME -Sp $ITG_UP_PORT >> /tmp/itg.log 2>&1 & )
else
- ( ~/bin/ITGRecv -Si $IFNAME -Sp $ITG_UP_PORT >> /tmp/itg.log 2>&1 & )
+ ( ~/bin/ITGRecv -Sp $ITG_UP_PORT >> /tmp/itg.log 2>&1 & )
fi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-16 15:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16 15:28 [Bismark-commits] rev 335 - trunk/mserver/etc trunk/mserver/scripts walter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox