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-contrib-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 36f2ac6d71e..e4e5f63100c 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx.inc +++ b/meta-webserver/recipes-httpd/nginx/nginx.inc @@ -20,7 +20,9 @@ SRC_URI = " \ file://nginx.service \ " -inherit update-rc.d useradd +inherit update-rc.d useradd systemd + +SYSTEMD_SERVICE_${PN} = "nginx.service" CFLAGS_append = " -fPIE -pie" CXXFLAGS_append = " -fPIE -pie" |