* [PATCH 0/1] xinetd: add systemd unit file
@ 2014-09-09 5:32 Chong Lu
2014-09-09 5:32 ` [PATCH 1/1] " Chong Lu
2014-09-17 7:27 ` [PATCH 0/1] " Chong Lu
0 siblings, 2 replies; 5+ messages in thread
From: Chong Lu @ 2014-09-09 5:32 UTC (permalink / raw)
To: openembedded-core
root@qemux86:~# systemctl status xinetd
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/lib/systemd/system/xinetd.service; enabled)
Active: active (running) since Tue 2014-09-09 05:13:43 UTC; 15s ago
Process: 124 ExecStart=/usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid $EXTRAOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 126 (xinetd)
CGroup: /system.slice/xinetd.service
└─126 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
Sep 09 05:13:43 qemux86 xinetd[126]: xinetd Version 2.3.15 started with lib...n.
Sep 09 05:13:43 qemux86 xinetd[126]: Started working: 0 available services
The following changes since commit 1894522f357fdf0b6adb2dcc14f12817628596bd:
bitbake: tinfoil: add a means of enabling variable history tracking (2014-09-05 10:14:25 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/xinetd
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/xinetd
Chong Lu (1):
xinetd: add systemd unit file
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
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/1] xinetd: add systemd unit file
2014-09-09 5:32 [PATCH 0/1] xinetd: add systemd unit file Chong Lu
@ 2014-09-09 5:32 ` Chong Lu
2014-09-24 2:13 ` Chong Lu
2014-10-08 2:52 ` Chong Lu
2014-09-17 7:27 ` [PATCH 0/1] " Chong Lu
1 sibling, 2 replies; 5+ messages in thread
From: Chong Lu @ 2014-09-09 5:32 UTC (permalink / raw)
To: openembedded-core
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"
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 1/1] xinetd: add systemd unit file
2014-09-09 5:32 ` [PATCH 1/1] " Chong Lu
@ 2014-09-24 2:13 ` Chong Lu
2014-10-08 2:52 ` Chong Lu
1 sibling, 0 replies; 5+ messages in thread
From: Chong Lu @ 2014-09-24 2:13 UTC (permalink / raw)
To: openembedded-core
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"
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 1/1] xinetd: add systemd unit file
2014-09-09 5:32 ` [PATCH 1/1] " Chong Lu
2014-09-24 2:13 ` Chong Lu
@ 2014-10-08 2:52 ` Chong Lu
1 sibling, 0 replies; 5+ messages in thread
From: Chong Lu @ 2014-10-08 2:52 UTC (permalink / raw)
To: Saul Wold, openembedded-core
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"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] xinetd: add systemd unit file
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-17 7:27 ` Chong Lu
1 sibling, 0 replies; 5+ messages in thread
From: Chong Lu @ 2014-09-17 7:27 UTC (permalink / raw)
To: openembedded-core
ping
On 09/09/2014 01:32 PM, Chong Lu wrote:
> root@qemux86:~# systemctl status xinetd
> ● xinetd.service - Xinetd A Powerful Replacement For Inetd
> Loaded: loaded (/lib/systemd/system/xinetd.service; enabled)
> Active: active (running) since Tue 2014-09-09 05:13:43 UTC; 15s ago
> Process: 124 ExecStart=/usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid $EXTRAOPTIONS (code=exited, status=0/SUCCESS)
> Main PID: 126 (xinetd)
> CGroup: /system.slice/xinetd.service
> └─126 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
>
> Sep 09 05:13:43 qemux86 xinetd[126]: xinetd Version 2.3.15 started with lib...n.
> Sep 09 05:13:43 qemux86 xinetd[126]: Started working: 0 available services
>
> The following changes since commit 1894522f357fdf0b6adb2dcc14f12817628596bd:
>
> bitbake: tinfoil: add a means of enabling variable history tracking (2014-09-05 10:14:25 +0100)
>
> are available in the git repository at:
>
> git://git.pokylinux.org/poky-contrib chonglu/xinetd
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/xinetd
>
> Chong Lu (1):
> xinetd: add systemd unit file
>
> 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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-08 2:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-09-17 7:27 ` [PATCH 0/1] " Chong Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox