mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
xinetd: Add default options.
Currently, xinetd cannot start if no service enabled.
# /etc/init.d/xinetd start
# ps aux | grep xinetd
# cat /var/log/syslog
xinetd[862]: 862 {init_services} no services. Exiting...
So add -stayalive option by default, as most distos do.
(From OE-Core rev: 53b6da085bfa78885f68b5d7db40d8c4e3f2f5bb)
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a0ad64d3c7
commit
d4beac1be2
12
meta/recipes-extended/xinetd/xinetd/xinetd.default
Normal file
12
meta/recipes-extended/xinetd/xinetd/xinetd.default
Normal file
@@ -0,0 +1,12 @@
|
||||
# Default settings for xinetd. This file is sourced by /bin/sh from
|
||||
# /etc/init.d/xinetd
|
||||
|
||||
# enable xinetd Inetd compat mode
|
||||
INETD_COMPAT=Yes
|
||||
|
||||
# Options to pass to xinetd
|
||||
#
|
||||
# -stayalive comes by default : it can be removed if xinetd is expected
|
||||
# not to start when no service is configured
|
||||
#
|
||||
XINETD_OPTS="-stayalive"
|
||||
@@ -12,6 +12,7 @@ PR = "r0"
|
||||
SRC_URI = "http://www.xinetd.org/xinetd-${PV}.tar.gz \
|
||||
file://xinetd.init \
|
||||
file://xinetd.conf \
|
||||
file://xinetd.default \
|
||||
file://Various-fixes-from-the-previous-maintainer.patch \
|
||||
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 \
|
||||
@@ -40,8 +41,10 @@ do_install() {
|
||||
install -d "${D}/usr/sbin"
|
||||
install -d "${D}/etc/init.d"
|
||||
install -d "${D}/etc/xinetd.d"
|
||||
install -d "${D}/etc/default"
|
||||
install -m 644 "${WORKDIR}/xinetd.conf" "${D}/etc"
|
||||
install -m 755 "${WORKDIR}/xinetd.init" "${D}/etc/init.d/xinetd"
|
||||
install -m 644 "${WORKDIR}/xinetd.default" "${D}/etc/default/xinetd"
|
||||
install -m 755 "${S}/xinetd/xinetd" "${D}/usr/sbin"
|
||||
install -m 755 "${S}/xinetd/itox" "${D}/usr/sbin"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user