neutron-lbaas/devstack/samples/webserver.sh
ajmiller 76693cce16 Add devstack scripts that set up a working loadbalancer
Change-Id: I18b4affccfc8773766e3eb66df7f97c8f58724e0
2015-04-18 18:11:27 -07:00

7 lines
190 B
Bash
Executable File

#!/bin/ash
MYIP=$(/sbin/ifconfig eth0|grep 'inet addr'|awk -F: '{print $2}'| awk '{print $1}');
while true; do
echo -e "HTTP/1.0 200 OK\r\n\r\nWelcome to $MYIP" | sudo nc -l -p 80
done