xinetd: add systemd unit file
Add systemd unit file for xinetd. (From OE-Core rev: aa0a1cbc92a4d586377cb9e9827ee8b90749c364) Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0d339e21db
commit
a60af9ac74
|
@ -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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue