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>
This commit is contained in:
Alexandre Belloni 2017-02-04 00:00:48 +01:00 committed by Martin Jansa
parent 2c21e3b27a
commit 1d1a43bb06

View File

@ -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"