Index: branches/fc11-dev/lvs/debian/config/etc/ha.d/ldirectord-finger.sh
===================================================================
--- branches/fc11-dev/lvs/debian/config/etc/ha.d/ldirectord-finger.sh	(revision 1210)
+++ branches/fc11-dev/lvs/debian/config/etc/ha.d/ldirectord-finger.sh	(revision 1210)
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+ulimit -v 10240
+
+read line
+line=${line%[:blank:]}
+line=${line%
+}
+
+/sbin/ipvsadm
Index: branches/fc11-dev/lvs/debian/config/etc/ha.d/ldirectord-http.sh
===================================================================
--- branches/fc11-dev/lvs/debian/config/etc/ha.d/ldirectord-http.sh	(revision 1210)
+++ branches/fc11-dev/lvs/debian/config/etc/ha.d/ldirectord-http.sh	(revision 1210)
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+ulimit -v 10240
+
+# Read and ignore the request
+line=foo
+while [ -n "$line" ]; do
+    read line
+    line=${line%[:blank:]}
+    line=${line%
+}
+done
+
+# Generate an HTTP reply
+
+echo "HTTP/1.0 200 OK
+"
+echo "Content-type: text/html
+"
+echo "
+"
+echo "<html><head><title>scripts.mit.edu server status</title></head><body><h1>scripts.mit.edu server status</h1><p>The following table shows a list of the servers that are currently handling web requests for scripts.mit.edu:</p><table>"
+/sbin/ipvsadm -L -f 2 | sed 's/:0//; s/:Port//' | awk 'BEGIN { OFS="</td><td>" } /->/ { print "<tr><td>" $2, $4, $5, $6 "</td></tr>"}'
+echo "</table></body></html>"
Index: branches/fc11-dev/lvs/debian/config/etc/inetd.conf
===================================================================
--- branches/fc11-dev/lvs/debian/config/etc/inetd.conf	(revision 1198)
+++ branches/fc11-dev/lvs/debian/config/etc/inetd.conf	(revision 1210)
@@ -39,3 +39,4 @@
 
 # Make it easy to remotely query these LVS servers
-79	stream	tcp	nowait	root	/sbin/ipvsadm
+79	stream	tcp	nowait	root	/etc/heartbeat/ldirectord-finger.sh
+78	stream	tcp	nowait	root	/etc/heartbeat/ldirectord-http.sh
Index: branches/fc11-dev/lvs/debian/config/etc/network/if-up.d/iptables
===================================================================
--- branches/fc11-dev/lvs/debian/config/etc/network/if-up.d/iptables	(revision 1198)
+++ branches/fc11-dev/lvs/debian/config/etc/network/if-up.d/iptables	(revision 1210)
@@ -20,4 +20,6 @@
 # Send SMTP-bound traffic to FWM 3 (load-balanced)
 iptables -A scripts -t mangle -m tcp -p tcp --dport 25 -j MARK --set-mark 3
+# Send finger-bound traffic to FWM 255 (the LVS director itself)
+iptables -A scripts -t mangle -m tcp -p tcp --dport 78:79 -j MARK --set-mark 255
 # Send everything else to FWM 1 (primary)
 iptables -A scripts -t mangle -m mark --mark 0 -j MARK --set-mark 1
