Skip to contentSkip to conversation

nginx: handle systemd service file

PATCH New Alexandre Belloni 1 participant 1 message Feb 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
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(-)
meta-webserver/recipes-httpd/nginx/nginx.inc +3 -1
index 36f2ac6d71e8..e4e5f63100c2 100644
@@ -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"
Signature · 1 line
2.11.0