diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-06-20 15:17:17 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-21 13:03:06 +0100 |
commit | d4beac1be263c1e03c122b2b41170f77b1a04263 (patch) | |
tree | 0a137cadff7c9eacc05517486bde0d92d74a395c /meta/recipes-extended/xinetd | |
parent | a0ad64d3c7e5bf06e163a49bb96c2fd186ed9abe (diff) | |
download | poky-d4beac1be263c1e03c122b2b41170f77b1a04263.tar.gz |
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>
Diffstat (limited to 'meta/recipes-extended/xinetd')
-rw-r--r-- | meta/recipes-extended/xinetd/xinetd/xinetd.default | 12 | ||||
-rw-r--r-- | meta/recipes-extended/xinetd/xinetd_2.3.15.bb | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-extended/xinetd/xinetd/xinetd.default b/meta/recipes-extended/xinetd/xinetd/xinetd.default new file mode 100644 index 0000000000..20a38e3f3e --- /dev/null +++ b/meta/recipes-extended/xinetd/xinetd/xinetd.default | |||
@@ -0,0 +1,12 @@ | |||
1 | # Default settings for xinetd. This file is sourced by /bin/sh from | ||
2 | # /etc/init.d/xinetd | ||
3 | |||
4 | # enable xinetd Inetd compat mode | ||
5 | INETD_COMPAT=Yes | ||
6 | |||
7 | # Options to pass to xinetd | ||
8 | # | ||
9 | # -stayalive comes by default : it can be removed if xinetd is expected | ||
10 | # not to start when no service is configured | ||
11 | # | ||
12 | XINETD_OPTS="-stayalive" | ||
diff --git a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb index 3d55e99712..a1421436c6 100644 --- a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb +++ b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb | |||
@@ -12,6 +12,7 @@ PR = "r0" | |||
12 | SRC_URI = "http://www.xinetd.org/xinetd-${PV}.tar.gz \ | 12 | SRC_URI = "http://www.xinetd.org/xinetd-${PV}.tar.gz \ |
13 | file://xinetd.init \ | 13 | file://xinetd.init \ |
14 | file://xinetd.conf \ | 14 | file://xinetd.conf \ |
15 | file://xinetd.default \ | ||
15 | file://Various-fixes-from-the-previous-maintainer.patch \ | 16 | file://Various-fixes-from-the-previous-maintainer.patch \ |
16 | file://Disable-services-from-inetd.conf-if-a-service-with-t.patch \ | 17 | file://Disable-services-from-inetd.conf-if-a-service-with-t.patch \ |
17 | file://xinetd-should-be-able-to-listen-on-IPv6-even-in-ine.patch \ | 18 | file://xinetd-should-be-able-to-listen-on-IPv6-even-in-ine.patch \ |
@@ -40,8 +41,10 @@ do_install() { | |||
40 | install -d "${D}/usr/sbin" | 41 | install -d "${D}/usr/sbin" |
41 | install -d "${D}/etc/init.d" | 42 | install -d "${D}/etc/init.d" |
42 | install -d "${D}/etc/xinetd.d" | 43 | install -d "${D}/etc/xinetd.d" |
44 | install -d "${D}/etc/default" | ||
43 | install -m 644 "${WORKDIR}/xinetd.conf" "${D}/etc" | 45 | install -m 644 "${WORKDIR}/xinetd.conf" "${D}/etc" |
44 | install -m 755 "${WORKDIR}/xinetd.init" "${D}/etc/init.d/xinetd" | 46 | install -m 755 "${WORKDIR}/xinetd.init" "${D}/etc/init.d/xinetd" |
47 | install -m 644 "${WORKDIR}/xinetd.default" "${D}/etc/default/xinetd" | ||
45 | install -m 755 "${S}/xinetd/xinetd" "${D}/usr/sbin" | 48 | install -m 755 "${S}/xinetd/xinetd" "${D}/usr/sbin" |
46 | install -m 755 "${S}/xinetd/itox" "${D}/usr/sbin" | 49 | install -m 755 "${S}/xinetd/itox" "${D}/usr/sbin" |
47 | } | 50 | } |