Index: trunk/lvs/debian/config/etc/ha.d/ldirectord-finger.sh
===================================================================
--- trunk/lvs/debian/config/etc/ha.d/ldirectord-finger.sh	(revision 1200)
+++ trunk/lvs/debian/config/etc/ha.d/ldirectord-finger.sh	(revision 1200)
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+read line
+line=${line%[:blank:]}
+line=${line%
+}
+
+if [ "${line:0:4}" = "GET " ]; then # HTTP request
+    echo "Content-type: text/plain"
+    echo
+    /sbin/ipvsadm
+else
+    /sbin/ipvsadm
+fi
Index: trunk/lvs/debian/config/etc/ha.d/ldirectord-http.sh
===================================================================
--- trunk/lvs/debian/config/etc/ha.d/ldirectord-http.sh	(revision 1200)
+++ trunk/lvs/debian/config/etc/ha.d/ldirectord-http.sh	(revision 1200)
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# 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>"
