xinetd: add systemd unit file
cover xinetd: add systemd unit file
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.pidSep 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
Signature · 1 line
1.9.1
PATCH 1/1 xinetd: add systemd unit file
Add systemd unit file for xinetd.
--- 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
meta/recipes-extended/xinetd/xinetd/xinetd.service new file +13 -0
@@ -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
meta/recipes-extended/xinetd/xinetd_2.3.15.bb +11 -1
@@ -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"
Signature · 1 line
1.9.1
ping
//Chong
Quoted 63 lines · Chong Lu
Add systemd unit file for xinetd.
Signed-off-by Chong Lu <[email protected]>--- 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
meta/recipes-extended/xinetd/xinetd/xinetd.service new file +13
-0@@ -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.targetmeta/recipes-extended/xinetd/xinetd_2.3.15.bb +11
-1@@ -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"
ping
//Chong
Quoted 63 lines · Chong Lu
Add systemd unit file for xinetd.
Signed-off-by Chong Lu <[email protected]>--- 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
meta/recipes-extended/xinetd/xinetd/xinetd.service new file +13
-0@@ -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.targetmeta/recipes-extended/xinetd/xinetd_2.3.15.bb +11
-1@@ -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"
ping
Quoted 29 lines · Chong Lu
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.pidSep 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 servicesThe 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-contribchonglu/xinetd
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/xinetdChong Lu (1):
xinetd: add systemd unit filemeta/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