From: Chong Lu <Chong.Lu@windriver.com>
To: Saul Wold <sgw@linux.intel.com>,
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] xinetd: add systemd unit file
Date: Wed, 8 Oct 2014 10:52:57 +0800 [thread overview]
Message-ID: <5434A709.50800@windriver.com> (raw)
In-Reply-To: <3ce7cbed40ec5f20f202d0b37d9dcf8b9ac6d6f6.1410240620.git.Chong.Lu@windriver.com>
ping
//Chong
On 09/09/2014 01:32 PM, Chong Lu wrote:
> Add systemd unit file for xinetd.
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
> meta/recipes-extended/xinetd/xinetd/xinetd.service | 13 +++++++++++++
> meta/recipes-extended/xinetd/xinetd_2.3.15.bb | 12 +++++++++++-
> 2 files changed, 24 insertions(+), 1 deletion(-)
> create mode 100644 meta/recipes-extended/xinetd/xinetd/xinetd.service
>
> diff --git a/meta/recipes-extended/xinetd/xinetd/xinetd.service b/meta/recipes-extended/xinetd/xinetd/xinetd.service
> new file mode 100644
> index 0000000..d5fdc5b
> --- /dev/null
> +++ b/meta/recipes-extended/xinetd/xinetd/xinetd.service
> @@ -0,0 +1,13 @@
> +[Unit]
> +Description=Xinetd A Powerful Replacement For Inetd
> +After=syslog.target network.target
> +
> +[Service]
> +Type=forking
> +PIDFile=/var/run/xinetd.pid
> +EnvironmentFile=-/etc/sysconfig/xinetd
> +ExecStart=@SBINDIR@/xinetd -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
> +ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
> +
> +[Install]
> +WantedBy=multi-user.target
> diff --git a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
> index 1928949..288186e 100644
> --- a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
> +++ b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
> @@ -17,12 +17,15 @@ SRC_URI = "http://www.xinetd.org/xinetd-${PV}.tar.gz \
> file://Disable-services-from-inetd.conf-if-a-service-with-t.patch \
> file://xinetd-should-be-able-to-listen-on-IPv6-even-in-ine.patch \
> file://xinetd-CVE-2013-4342.patch \
> + file://xinetd.service \
> "
>
> SRC_URI[md5sum] = "77358478fd58efa6366accae99b8b04c"
> SRC_URI[sha256sum] = "bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3"
>
> -inherit autotools update-rc.d
> +inherit autotools update-rc.d systemd
> +
> +SYSTEMD_SERVICE_${PN} = "xinetd.service"
>
> INITSCRIPT_NAME = "xinetd"
> INITSCRIPT_PARAMS = "defaults"
> @@ -52,6 +55,13 @@ do_install() {
> install -m 644 "${WORKDIR}/xinetd.default" "${D}${sysconfdir}/default/xinetd"
> install -m 755 "${B}/xinetd/xinetd" "${D}${sbindir}"
> install -m 755 "${B}/xinetd/itox" "${D}${sbindir}"
> +
> + # Install systemd unit files
> + install -d ${D}${systemd_unitdir}/system
> + install -m 0644 ${WORKDIR}/xinetd.service ${D}${systemd_unitdir}/system
> + sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
> + -e 's,@SBINDIR@,${sbindir},g' \
> + ${D}${systemd_unitdir}/system/xinetd.service
> }
>
> CONFFILES_${PN} = "${sysconfdir}/xinetd.conf"
next prev parent reply other threads:[~2014-10-08 2:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-09 5:32 [PATCH 0/1] xinetd: add systemd unit file Chong Lu
2014-09-09 5:32 ` [PATCH 1/1] " Chong Lu
2014-09-24 2:13 ` Chong Lu
2014-10-08 2:52 ` Chong Lu [this message]
2014-09-17 7:27 ` [PATCH 0/1] " Chong Lu
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=5434A709.50800@windriver.com \
--to=chong.lu@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=sgw@linux.intel.com \
/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