From: Carlos Santos <casantos@datacom.com.br>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] apache: add init sysv script
Date: Thu, 21 Jun 2018 15:13:00 -0300 (BRT) [thread overview]
Message-ID: <835229647.13256.1529604780006.JavaMail.zimbra@datacom.com.br> (raw)
In-Reply-To: <20180620210021.12253-1-fontaine.fabrice@gmail.com>
> From: "Fabrice Fontaine" <fontaine.fabrice@gmail.com>
> To: "buildroot" <buildroot@buildroot.org>
> Cc: "Fabrice Fontaine" <fontaine.fabrice@gmail.com>
> Sent: Wednesday, June 20, 2018 6:00:21 PM
> Subject: [Buildroot] [PATCH 1/1] apache: add init sysv script
> 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
Tested-by: Carlos Santos <casantos@datacom.com.br>
Built a VM and tested all options. Looks good to me. Do you intend to
add the corresponding systemd service configuration?
--
Carlos Santos (Casantos) - DATACOM, P&D
?Marched towards the enemy, spear upright, armed with the certainty
that only the ignorant can have.? ? Epitaph of a volunteer
next prev parent reply other threads:[~2018-06-21 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 21:00 [Buildroot] [PATCH 1/1] apache: add init sysv script Fabrice Fontaine
2018-06-21 18:13 ` Carlos Santos [this message]
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=835229647.13256.1529604780006.JavaMail.zimbra@datacom.com.br \
--to=casantos@datacom.com.br \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox