summaryrefslogtreecommitdiffstats
path: root/meta-webserver
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-02-04 00:00:48 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2017-02-13 18:43:29 +0100
commit1d1a43bb0669b39e29b04a70bdb5456d1bdb0051 (patch)
tree537886aeed30efa7cdac3bb4ab482f7e96da9638 /meta-webserver
parent2c21e3b27adf369f0b9b0ba9b79f82c5fef08b04 (diff)
downloadmeta-openembedded-1d1a43bb0669b39e29b04a70bdb5456d1bdb0051.tar.gz
nginx: handle systemd service file
Inherit the systemd class so the service file is properly handled. Note that by default, the service file will be installed but not enabled. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-webserver')
-rw-r--r--meta-webserver/recipes-httpd/nginx/nginx.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc
index 36f2ac6d7..e4e5f6310 100644
--- a/meta-webserver/recipes-httpd/nginx/nginx.inc
+++ b/meta-webserver/recipes-httpd/nginx/nginx.inc
@@ -20,7 +20,9 @@ SRC_URI = " \
20 file://nginx.service \ 20 file://nginx.service \
21" 21"
22 22
23inherit update-rc.d useradd 23inherit update-rc.d useradd systemd
24
25SYSTEMD_SERVICE_${PN} = "nginx.service"
24 26
25CFLAGS_append = " -fPIE -pie" 27CFLAGS_append = " -fPIE -pie"
26CXXFLAGS_append = " -fPIE -pie" 28CXXFLAGS_append = " -fPIE -pie"