mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
apache: add init sysv script
sysv init script is just a wrapper to apachectl Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Tested-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
630fd8785b
commit
fe03f5231f
12
package/apache/S50apache
Normal file
12
package/apache/S50apache
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start|restart|graceful|graceful-stop|stop)
|
||||||
|
apachectl -k $1
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start|restart|graceful|graceful-stop|stop}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $?
|
@ -92,4 +92,9 @@ define APACHE_CLEANUP_TARGET
|
|||||||
endef
|
endef
|
||||||
APACHE_POST_INSTALL_TARGET_HOOKS += APACHE_CLEANUP_TARGET
|
APACHE_POST_INSTALL_TARGET_HOOKS += APACHE_CLEANUP_TARGET
|
||||||
|
|
||||||
|
define APACHE_INSTALL_INIT_SYSV
|
||||||
|
$(INSTALL) -D -m 0755 package/apache/S50apache \
|
||||||
|
$(TARGET_DIR)/etc/init.d/S50apache
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user