aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-extended/lighttpd
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2014-04-08 11:47:55 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-04-10 14:38:54 -0400
commit289d3d1e396f66af81cdfc434d48ded043c33320 (patch)
treea5f2f1737b4819f228ca33231dfd1155857c87ff /meta-openstack/recipes-extended/lighttpd
parent940e7d24c418a9cbb93850c31d00e4f1edeaf764 (diff)
downloadmeta-cloud-services-289d3d1e396f66af81cdfc434d48ded043c33320.tar.gz
meta-cloud-services-289d3d1e396f66af81cdfc434d48ded043c33320.tar.bz2
meta-cloud-services-289d3d1e396f66af81cdfc434d48ded043c33320.zip
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 <amy.fong@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-extended/lighttpd')
-rw-r--r--meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.30.bbappend5
1 files changed, 5 insertions, 0 deletions
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
+}