INETD.CONF(5) Series 300 Only INETD.CONF(5)
NAME
inetd.conf - configuration file for inetd(1M)
HP-UX COMPATIBILITY
Level: HP-UX/NON-STANDARD
Origin: UCB
Remarks: Implemented on the Series 300 only.
DESCRIPTION
Upon execution, inetd(1M) reads its configuration
information from the configuration file /etc/inetd.conf and,
possibly, at some later time in response to a SIGHUP signal;
see inetd(1M).
There must be an entry for each field of the configuration
file. Each field must be separated by tabs and/or spaces. A
line can be continued if it terminates with a `\'. Comments
are denoted by a `#' at the beginning of a line. The number
of entries in the configuration file must not exceed _NFILE
- 10. _NFILE is defined in <stdio.h>. A line in the
configuration file has the following fields:
service name
socket type
protocol
wait/nowait
user
server program
server program arguments
Service name is the name of a valid service in the file
/etc/services. For example: shell for the remsh service,
login for the rlogin service and telnet for the telnet
service.
Socket type is either ``stream'' or ``dgram'', depending on
whether the server socket is a stream or a datagram socket.
Protocol must be a valid protocol as given in
/etc/protocols; for example ``tcp'' or ``udp''.
Wait/nowait applys to datagram sockets only (other sockets
should specify ``nowait'').
Wait instructs inetd to execute only one datagram server for
the specified socket at any one time. Datagram servers
which process all datagrams on a socket and terminate by
timing out are called single-threaded.
Nowait instructs inetd to execute a datagram server for a
Hewlett-Packard - 1 - (printed 7/16/86)
INETD.CONF(5) Series 300 Only INETD.CONF(5)
specified socket whenever a datagram arrives. Datagram
servers which connect to their peers and free the socket so
inetd can receive further datagrams are called multi-
threaded.
User entry is the name of the user as whom the server should
run.
Server program is the absolute pathname of the program which
inetd executes when it finds a request on the server's
socket.
The arguments to the server program should be just as they
normally are, starting with argv[0], which is the name of
the program.
EXAMPLES
1) This is the entry for the remsh service, which uses the
tcp protocol, and which daemon should run as root.
shell stream tcp nowait root /etc/remshd remshd
2) This is a possible entry for the ftp service which
times-out an inactive session after 75 seconds.
ftp stream tcp nowait root /etc/ftpd ftpd -t75
SEE ALSO
inetd(1M), inetd.sec(5), protocols(5), services(5).
Hewlett-Packard - 2 - (printed 7/16/86)