diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-02-04 00:00:48 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-02-13 18:43:29 +0100 |
commit | 1d1a43bb0669b39e29b04a70bdb5456d1bdb0051 (patch) | |
tree | 537886aeed30efa7cdac3bb4ab482f7e96da9638 /meta-webserver | |
parent | 2c21e3b27adf369f0b9b0ba9b79f82c5fef08b04 (diff) | |
download | meta-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.inc | 4 |
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 | ||
23 | inherit update-rc.d useradd | 23 | inherit update-rc.d useradd systemd |
24 | |||
25 | SYSTEMD_SERVICE_${PN} = "nginx.service" | ||
24 | 26 | ||
25 | CFLAGS_append = " -fPIE -pie" | 27 | CFLAGS_append = " -fPIE -pie" |
26 | CXXFLAGS_append = " -fPIE -pie" | 28 | CXXFLAGS_append = " -fPIE -pie" |