INETD.CONF(4-SysV) RISC/os Reference Manual INETD.CONF(4-SysV)
NAME
inetd.conf - Internet servers database
DESCRIPTION
The inetd.conf file contains the list of servers that
inetd(1M) invokes when it receives an Internet request over
a socket. Each server entry is composed of a single line of
the form:
service-name socket-type protocol wait-status uid
server-program server-arguments
Fields can be separated by either spaces or TAB characters.
A `#' (pound-sign) indicates the beginning of a comment;
characters up to the end of the line are not interpreted by
routines that search this file.
service-name is the name of a valid service listed in
the file /etc/services. For RPC services,
the value of the service-name field con-
sists of three fields: the string rpc,
the rpc program number, the version number
or a range of version numbers separated by
a dash. That is, if the service-name is
rpc, then there are two additional fields,
the rpc program number and the version
number. RPC services need not be listed
in /etc/services, as their port numbers
are dynamically bound by the the port-
mapper, portmap(1M). The portmapper
requires that the rpc program number be
present in /etc/rpc. The specification of
both the rpc program number and the
version(s) allows the possibility of dif-
ferent service programs or different argu-
ments to a common service program to be
used for different versions of the same
rpc protocol.
socket-type can be one of:
stream for a stream socket,
dgram for a datagram socket,
raw for a raw socket,
rdm for a reliably delivered
message socket, or
seqpacket for a sequenced packet
socket.
protocol must be a recognized protocol listed in
the file /etc/protocols.
wait-status is nowait for all but single-threaded
Printed 1/15/91 Page 1
INETD.CONF(4-SysV) RISC/os Reference Manual INETD.CONF(4-SysV)
datagram servers - servers which do not
release the socket until a timeout occurs
(such as comsat(8C) and talkd(8C)). These
must have the status wait. Although
tftpd(1M) establishes separate pseudo-
connections, its forking behavior can lead
to a race condition unless it is also
given the status wait.
uid is the user ID under which the server
should run. This allows servers to run
with access privileges other than those
for root.
server-program is either the pathname of a server program
to be invoked by inetd to perform the
requested service, or the value internal
if inetd itself provides the service.
server-arguments If a server must be invoked with command-
line arguments, the entire command line
(including argument 0) must appear in this
field (which consists of all remaining
words in the entry). If the server
expects inetd to pass it the address of
its peer (for compatibility with 4.2BSD
executable daemons), then the first argu-
ment to the command should be specified as
`%A'.
FILES
/etc/inetd.conf
/etc/services
/etc/protocols
SEE ALSO
services(4).
inetd(1M), portmap(1M), tftpd(1M), comsat(8C), talkd(8C) in
the System Administrator's Reference Manual.
Page 2 Printed 1/15/91