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 <[email protected]> --- Changes in v2: - let nginx be started automatically by default meta-webserver/recipes-httpd/nginx/nginx.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc index 36f2ac6d71e8..e4e5f63100c2 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" -- 2.11.0 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
