Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

inetd(8) OSS Shell and Utilities Reference Manual
SockType
One of stream, dgram,orraw, depending on whether the socket is a stream, datagram,
or raw socket.
ProtoName
A valid protocol as given in /etc/protocols. Examples are tcp or udp.
Wait/Nowait
Applicable to datagram sockets only. (Other sockets should have a nowait entry in this
space.)
If a datagram server connects to its peer, freeing the socket so inetd can receive further
messages on the socket, it is said to be a multithreaded server, and should use the
nowait
entry.
For datagram servers that process all incoming datagrams on a socket and eventually time
out, the server is dened as singlethreaded, and should use a
wait entry.
UserName
The username of the user for whom the server should run. This allows for servers to be
given less permission than the super ID.
Proc The processor number of one or more processors on which to run the corresponding exter-
nal server process. This eld is optional and can be omitted.
This eld is used to perform load-balancing of server processes among the processors
within a node. When this eld is omitted, inetd assigns each server it starts to the next
available processor in the node. This eld is ignored unless the -L ag is specied when
inetd is started.
The number specication must be enclosed in square brackets ([ and ]). If more than one
processor number is used, the numbers can be specied as a range (using a dash between
the lowest and highest processor numbers in the range), as a comma-separated list, or as a
combination of those two formats. The current processor (the processor on which inetd
runs) can be specied using empty brackets ([]). Blanks cannot appear within the brack-
ets.
When inetd is started without specifying the -L ag, the behavior is the same as when
empty brackets are used with the -L ag; that is, all external service programs run on the
processor used by inetd.
SrvPath
The pathname of the server program that is to be executed by inetd when a service
request is found on its socket. If inetd provides a service internally, this entry should be
internal.
SrvArgs
The command-line arguments that the server process must execute. For services that
inetd provides internally, this eld should be left empty.
The arguments to a SrvPath entry should be specied just as they normally are for a shell
command line, starting with argv[0], which is the name of the program.
The inetd process can provide several trivial services itself, without using external server pro-
grams. These services are echo, discard, chargen (character generator), daytime (human-
readable time), and time (machine-readable time, in the form of the number of seconds since
midnight January 1, 1900). All of these services are tcp based.
The inetd process rereads its conguration le when it receives a hangup signal, SIGHUP. Ser-
vices may be added, deleted, or modied when the conguration le is reread.
1214 Hewlett-Packard Company 527188-003