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 331 - trunk/mserver/etc trunk/mserver/scripts
Date: Thu, 28 Apr 2011 18:10:28 +0200	[thread overview]
Message-ID: <E1QFTnQ-0005Xc-SJ@svn.comics.unina.it> (raw)

Author: walter
Date: 2011-04-28 18:10:28 +0200 (Thu, 28 Apr 2011)
New Revision: 331

Added:
   trunk/mserver/scripts/itg_up
   trunk/mserver/scripts/reload
Modified:
   trunk/mserver/etc/mserver.conf
   trunk/mserver/scripts/setup_mlab
Log:
mserver beta

Modified: trunk/mserver/etc/mserver.conf
===================================================================
--- trunk/mserver/etc/mserver.conf	2011-04-28 10:21:30 UTC (rev 330)
+++ trunk/mserver/etc/mserver.conf	2011-04-28 16:10:28 UTC (rev 331)
@@ -3,7 +3,7 @@
 IFNAME=eth0
 
 # Web server options
-HTTP_PORT=8080
+HTTP_PORT=8081
 
 # D-ITG options
 ITG_DW_PORT=1430

Added: trunk/mserver/scripts/itg_up
===================================================================
--- trunk/mserver/scripts/itg_up	                        (rev 0)
+++ trunk/mserver/scripts/itg_up	2011-04-28 16:10:28 UTC (rev 331)
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Load configuration
+. ~/etc/mserver.conf
+
+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 & )
+fi
+


Property changes on: trunk/mserver/scripts/itg_up
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/mserver/scripts/reload
===================================================================
--- trunk/mserver/scripts/reload	                        (rev 0)
+++ trunk/mserver/scripts/reload	2011-04-28 16:10:28 UTC (rev 331)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+echo -n "Stopping all services..."
+sudo killall probeserver ITGRecv socat
+echo "done"
+
+sleep 2
+
+echo -n "Restarting services..."
+~/scripts/daemons
+echo "done"
+


Property changes on: trunk/mserver/scripts/reload
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/mserver/scripts/setup_mlab
===================================================================
--- trunk/mserver/scripts/setup_mlab	2011-04-28 10:21:30 UTC (rev 330)
+++ trunk/mserver/scripts/setup_mlab	2011-04-28 16:10:28 UTC (rev 331)
@@ -1,10 +1,21 @@
 #!/bin/sh
 
-sudo yum -y install socat
+# Load configuration
+. ~/etc/mserver.conf
 
-# lighttpd php-cli-5.2.6-2.fc8.i386
-# echo "cgi.fix_pathinfo = 1" >> /etc/php.ini
+sudo yum -y install socat 
 
-# decommenta fcgi in lighttpd.conf
+# HTTP stuff (work in progress)
+# lighttpd lighttpd-fastcgi php-cli
+#echo "cgi.fix_pathinfo = 1" | sudo tee /etc/php.ini
+#[ -e /etc/lighttpd/lighttpd.conf.old ] || sudo mv /etc/lighttpd/lighttpd.conf{.old,}
+#sudo sed -i.old -f - /etc/lighttpd/lighttpd.conf <<-END
+#	/"mod_fastcgi"/ s/^#//
+#	/^server.document-root/ s/^/#/ 
+#	/^#server.document-root/ a server.document-root = "$HOME/www/"
+#	/^#server.port/ a server.port = $HTTP_PORT
+#END
+#sudo chmod 777 $HOME
+#sudo /etc/init.d/lighttpd start
 
 crontab ~/etc/crontab


                 reply	other threads:[~2011-04-28 16:08 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=E1QFTnQ-0005Xc-SJ@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