Package: xinetd
Version: 1:2.3.14-7
Severity: normal

xinetd does not recognize wait/nowait suffix for services in
/etc/inetd.conf while running with -inetd_compat option

>From manpage of inetd.conf:

-------------<-------------
Upon execution, inetd reads its configuration information
from a configuration file which, by default, is /etc/inetd.conf
...
The fields of the configuration file are as follows:
...
           wait/nowait[.max]
...
The optional "max" suffix (separated from "wait" or "nowait" by
a dot) specifies the maximum number of times a service can be
invoked in one minute; the default is 256.  If a service exceeds
this limit, inetd will log the problem and stop servicing requests
for the specific service for ten minutes.
------------->-------------

To REPODUCE:

 - include any service with nowait.max to /etc/inetd.conf, f.e.:

-------------<-------------
time            stream  tcp     nowait.10       root    internal
------------->-------------

make sure that included service has no configuration in
/etc/xinetd.conf or under /etc/xinetd.d/

 - run xinetd with -inetd_compat option

Time server will be started by xinetd, in /var/log/syslog you will see
the record like this:

-------------<-------------
May 29 20:33:26 handy-drive xinetd[5697]: inetd.conf - Bad value for
wait: nowait.10 [file=/etc/inetd.conf] [line=20]
------------->-------------

This problem initially was found on Debian Etch, but I see bug is
actual for Debian Sid too.

EXPECTED behavior:

wait/nowait suffix is recognized and is treated as corresponding cps attribute.

So nowait.1000 in /etc/inetd.conf should have the same effect as below
attributes in /etc/xinetd.d/service_name

  wait = no
  cps = 17 600

(1000 per minute is approx 17 per second, 10 minutes = 600 seconds )

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xinetd depends on:
ii  libc6                         2.7-11     GNU C Library: Shared libraries
ii  libwrap0                      7.6.q-15   Wietse Venema's TCP wrappers libra
ii  netbase                       4.32       Basic TCP/IP networking system
ii  update-inetd                  4.30       inetd configuration file updater

Versions of packages xinetd recommends:
ii  logrotate                     3.7.1-3    Log rotation utility
ii  sysklogd [system-log-daemon]  1.5-3      System Logging Daemon

-- no debconf information

Thanks.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to