|
@@ -97,4 +97,12 @@ define APACHE_INSTALL_INIT_SYSV
|
|
|
$(TARGET_DIR)/etc/init.d/S50apache
|
|
|
endef
|
|
|
|
|
|
+define APACHE_INSTALL_INIT_SYSTEMD
|
|
|
+ $(INSTALL) -D -m 644 package/apache/apache.service \
|
|
|
+ $(TARGET_DIR)/usr/lib/systemd/system/apache.service
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -sf ../../../../usr/lib/systemd/system/apache.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/apache.service
|
|
|
+endef
|
|
|
+
|
|
|
$(eval $(autotools-package))
|