From Bugzilla Helper: User-Agent: Mozilla/4.76C-CCK-MCD Netscape [en] (X11; U; SunOS 5.8 sun4u) The following files need to have the trailing "-udp" removed on the service line. If not done, you get this message in /var/log/messages if the service is enabled: May 1 16:46:37 dan xinetd[20864]: No such internal service: time-udp Reproducible: Always Steps to Reproduce: 1. Temporarily enable service (change "yes" to "disable = no" in /etc/xinetd.d/*-udp files) 2. Restart: /etc/rc.d/init.d/xinetd restart 3. Tail log: tail /var/log/messages Actual Results: You see error messages: No such internal service: time-udp . . . And NO service enabled: # netstat -a |grep ':time ' # Expected Results: 4. NO error message and the service should be enabled: # netstat -a |grep ':time ' tcp 0 0 *:time *:* LISTEN udp 0 0 *:time *:* #
Removing the "-udp" suffix confuses other services.
Let me clarify. Both udp and tcp services can and do have the same name. Lets take "echo" as an example: $ grep echo /etc/services echo 7/tcp echo 7/udp Although /etc/xinetd.d/echo and /etc/xinetd.d/echo-udp are different file names both MUST have "echo" on the "service" line (because there's no such service called "echo-udp" # ls -l /etc/xinetd.d/echo* -rw-r--r-- 1 root root 288 May 3 13:01 echo -rw-r--r-- 1 root root 343 May 3 13:00 echo-udp # cat /etc/xinetd.d/echo # default: off # description: An echo server. This is the tcp \ # version. service echo { type = INTERNAL id = echo-stream socket_type = stream protocol = tcp user = root wait = no disable = no } # cat /etc/xinetd.d/echo-udp # default: off # description: An echo server. This is the udp \ # version. # Removed -udp (bugzilla bug 38669) service echo { type = INTERNAL UNLISTED id = echo-dgram socket_type = dgram protocol = udp user = root wait = yes disable = no port = 7 } # netstat -a |grep echo tcp 0 0 *:echo *:* LISTEN udp 0 0 *:echo *:*
I know that - the problems is handling it in ntsysv and chkconfig, which needs unique names for services: Note that I specify the port in an attempt at making xinetd run it with a different name.
OK. Thanks for the comment. Let me just add that it sounds like ntsysv and chkconfig need to be fixed. Service names could be the same for both TCP and UDP and that this has long been standardized before ntsysv or chkconfig have existed.
A fix is in xinetd-2.1.8.9pre15-1.
*** Bug 49564 has been marked as a duplicate of this bug. ***