From 289d3d1e396f66af81cdfc434d48ded043c33320 Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Tue, 8 Apr 2014 11:47:55 -0400 Subject: Modify lighttpd startup behaviour modify lighttpd not to run if server.port isn't explicitly specified in /etc/lighttpd.conf Signed-off-by: Amy Fong --- meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend diff --git a/meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend b/meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend new file mode 100644 index 0000000..50fab9f --- /dev/null +++ b/meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend @@ -0,0 +1,5 @@ +INC := "${@int(PRINC) + 1}" + +do_install_append() { + sed -i '2i port=`grep "^server.port" /etc/lighttpd.conf`; if [ -z $port ]; then echo "server port not configured, not running lighttpd..."; exit 0; fi' ${D}/etc/init.d/lighttpd +} -- cgit v1.2.3-54-g00ecf