Changeset 2052


Ignore:
Timestamp:
Nov 13, 2011, 10:49:36 PM (10 years ago)
Author:
mitchb
Message:
Quentin is picky about headers - here, have them back
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lvs/debian/config/etc/ha.d/ldirectord-http.sh

    r2051 r2052  
    2121"
    2222echo "<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>"
    23 /sbin/ipvsadm | sed 's/:0//; s/:Port//' | awk 'BEGIN { OFS="</td><td>" } /^FWM  2 /,/^FWM  [^2] / { if (/->/) print "<tr><td>" $2, $4, $5, $6 "</td></tr>"}'
     23/sbin/ipvsadm | sed 's/:0//; s/:Port//' | awk 'BEGIN { OFS="</td><td>"; show=1 } /^FWM  2 / { show=1 } /^FWM  [^2] / { show=0 } /->/ { if (show==1) print "<tr><td>" $2, $4, $5, $6 "</td></tr>"}'
    2424echo "</table></body></html>"
Note: See TracChangeset for help on using the changeset viewer.