summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/apache/S50apache12
-rw-r--r--package/apache/apache.mk5
2 files changed, 17 insertions, 0 deletions
diff --git a/package/apache/S50apache b/package/apache/S50apache
new file mode 100644
index 0000000000..623a7eef3b
--- /dev/null
+++ b/package/apache/S50apache
@@ -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 $?
diff --git a/package/apache/apache.mk b/package/apache/apache.mk
index 23414fe44d..f4c522916e 100644
--- a/package/apache/apache.mk
+++ b/package/apache/apache.mk
@@ -92,4 +92,9 @@ define APACHE_CLEANUP_TARGET
endef
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))
OpenPOWER on IntegriCloud