Historic archive of defunct list bismark-commits@lists.bufferbloat.net
 help / color / mirror / Atom feed
From: walter@svn.comics.unina.it
To: bismark-commits@lists.bufferbloat.net
Subject: [Bismark-commits] rev 335 - trunk/mserver/etc trunk/mserver/scripts
Date: Mon, 16 May 2011 17:28:01 +0200	[thread overview]
Message-ID: <E1QLziD-00051S-H8@svn.comics.unina.it> (raw)

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
 


                 reply	other threads:[~2011-05-16 15:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1QLziD-00051S-H8@svn.comics.unina.it \
    --to=walter@svn.comics.unina.it \
    --cc=bismark-commits@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox