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

Administrator Commands and Files inetd(8)
empty brackets are used with the -L flag; 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 field should be left empty.
The arguments to a SrvPath entry should be specified 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 configuration file when it receives a hangup signal, SIGHUP. Ser-
vices may be added, deleted, or modified when the configuration file is reread.
EXAMPLES
1. To start inetd as a named process and restrict it to satisfying approximately 10 service
requests per minute, enter:
/usr/ucb/inetd -R 10 -W /G/INETD /etc/inetd.conf &
2. To start inetd as a named process and perform load balancing for the rexecd service
using processors 2 through 4, enter:
/usr/ucb/inetd -R 10 -W /G/INETD -L &
using an /etc/inetd.conf configuration file that contains the following entry:
exec stream tcp nowait super.super [2-4] /bin/rexecd
3. To start inetd as a foreground process, enter:
/usr/ucb/inetd -f
4. These SCF commands configure and start the inetd process as a persistent process:
527188-021 Hewlett-Packard Company 1237