apache: add systemd init script
PATCH 1/1 apache: add systemd init script
Signed-off-by Fabrice Fontaine <[email protected]>
--- package/apache/apache.mk | 8 ++++++++ package/apache/apache.service | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 package/apache/apache.service
package/apache/apache.mk +8 -0
@@ -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))
package/apache/apache.service new file +13 -0
@@ -0,0 +1,13 @@ +[Unit] +Description=Apache HTTP Server +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/apachectl start +ExecReload=/usr/bin/apachectl graceful +ExecStop=/usr/bin/apachectl stop +Restart=always + +[Install] +WantedBy=multi-user.target
Signature · 1 line
2.14.1
PATCH 1/1 apache: add systemd init script
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
Signed-off-by Fabrice Fontaine <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard