mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
apache: add systemd init script
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
28de0c07cf
commit
2ce4028d5f
@ -97,4 +97,12 @@ define APACHE_INSTALL_INIT_SYSV
|
|||||||
$(TARGET_DIR)/etc/init.d/S50apache
|
$(TARGET_DIR)/etc/init.d/S50apache
|
||||||
endef
|
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))
|
$(eval $(autotools-package))
|
||||||
|
13
package/apache/apache.service
Normal file
13
package/apache/apache.service
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user