From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] apache: add init sysv script
Date: Wed, 20 Jun 2018 23:00:21 +0200 [thread overview]
Message-ID: <20180620210021.12253-1-fontaine.fabrice@gmail.com> (raw)
sysv init script is just a wrapper to apachectl
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/apache/S50apache | 12 ++++++++++++
package/apache/apache.mk | 5 +++++
2 files changed, 17 insertions(+)
create mode 100644 package/apache/S50apache
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))
--
2.14.1
next reply other threads:[~2018-06-20 21:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 21:00 Fabrice Fontaine [this message]
2018-06-21 18:13 ` [Buildroot] [PATCH 1/1] apache: add init sysv script Carlos Santos
2018-06-21 19:41 ` Peter Korsgaard
2018-06-21 22:18 ` Arnout Vandecappelle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180620210021.12253-1-fontaine.fabrice@gmail.com \
--to=fontaine.fabrice@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.