diff options
author | Amy Fong <amy.fong@windriver.com> | 2014-04-08 11:47:55 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-10 14:38:54 -0400 |
commit | 289d3d1e396f66af81cdfc434d48ded043c33320 (patch) | |
tree | a5f2f1737b4819f228ca33231dfd1155857c87ff /meta-openstack/recipes-extended/lighttpd | |
parent | 940e7d24c418a9cbb93850c31d00e4f1edeaf764 (diff) | |
download | meta-cloud-services-289d3d1e396f66af81cdfc434d48ded043c33320.tar.gz |
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.bbappend | 5 |
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 @@ | |||
1 | INC := "${@int(PRINC) + 1}" | ||
2 | |||
3 | do_install_append() { | ||
4 | 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 | ||
5 | } | ||