Skip to contentSkip to conversation

nginx: activate the systemd service

PATCH New Aurélien Chabot 2 participants 2 messages Jul 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nginx: activate the systemd service

---
 package/nginx/nginx.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/nginx/nginx.mk +5 -0
index c617f68..32a337c 100644
@@ -230,6 +230,11 @@ endef
 define NGINX_INSTALL_INIT_SYSTEMD
 	$(INSTALL) -D -m 0644 package/nginx/nginx.service \
 		$(TARGET_DIR)/usr/lib/systemd/system/nginx.service
+
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+
+	ln -fs ../../../../usr/lib/systemd/system/nginx.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/nginx.service
 endef
 
 define NGINX_INSTALL_INIT_SYSV
Signature · 1 line
2.4.5
#1 lore raw

PATCH 1/1 nginx: activate the systemd service

Dear Aur?lien Chabot,

Quoted 4 lines · Aur?lien Chabot
---
 package/nginx/nginx.mk | 5 +++++
 1 file changed, 5 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com