[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    man page(1) manual page Table of Contents

NAME

SYNOPSIS

DESCRIPTION

should be run at boot time by (see If your can respawn arbitrary daemons, can be run from init instead; then init will restart it if it crashes. You must use the option to prevent from backgrounding itself, or init will become confused. When running, internet sockets. When a connection is found on one of its sockets, it looks up what service the socket corresponds to, and invokes a program to service the request. After the program is finished, it will continue to listen on the socket, except in some special cases which will be described below. Essentially, allows running one daemon to invoke several others, reducing load on the system. The options available for Turns on several kinds of debugging and make inetd behave if run in a debugger. Also implies Do not background; for running from Sets the size of the socket listen queue to the specified value. Default is 128. Upon execution, reads its configuration information from a configuration file which, by default, is There must be an entry for each field of the configuration file, with entries for each field separated by a tab or a space. Comments are denoted by a ‘‘#’’ at the beginning of a line. There must be an entry for each field. The fields of the configuration file are as follows: service name[@hostname] socket type protocol wait/nowait[.max] user[.group] server program server program arguments To specify an based service, the entry would contain these fields. service name/version[@hostname] socket type rpc/protocol wait/nowait[.max] user[.group] server program server program arguments The entry is the name of a valid service in the file For services (discussed below), the service name be the official name of the service (that is, the first entry in When used to specify a based service, this field is a valid RPC service name in the file The part on the right of the is the RPC version number. This can simply be a single numeric argument or a range of versions. A range is bounded by the low version to the high version - If a string of the form is appended to the service, it causes inetd to bind to the port for the service on only the specific IP address associated with instead of listening on all available addresses. This can be done as many times as desired for different addresses, which permits setting up ‘‘virtually hosted’’ services. Note, however, that while you can listen to as many specific addresses as you want, kernel restrictions prevent from listening to the same port on a specific address and the general address at once. should be a resolvable hostname or an IP address associated with one of the interfaces of the local system.

The should be one of or depending on whether the socket is a stream, datagram, raw, reliably delivered message, or sequenced packet socket. The must be a valid protocol as given in Examples might be or Rpc based services are specified with the or service type.

The entry is applicable to datagram sockets only (other sockets should have a entry in this space). If a datagram server connects to its peer, freeing the socket so can received further messages on the socket, it is said to be a server, and should use the entry. For datagram servers which process all incoming datagrams on a socket and eventually time out, the server is said to be and should use a entry. and are both examples of the latter type of datagram server. is an exception; it is a datagram server that establishes pseudo-connections. It must be listed as in order to avoid a race; the server reads the first packet, creates a new socket, and then forks and exits to allow to check for new service requests to spawn new servers. The optional suffix (separated from or by a dot) specifies the maximum number of server instances that may be spawned from within an interval of 60 seconds. When omitted, defaults to 40. The entry should contain the user name of the user as whom the server should run. This allows for servers to be given less permission than root. An optional group name can be specified by appending a dot to the user name followed by the group name. This allows for servers to run with a different (primary) group id than specified in the password file. If a group is specified and user is not root, the supplementary groups associated with that user will still be set. The entry should contain the pathname of the program which is to be executed by when a request is found on its socket. If provides this service internally, this entry should be The should be just as arguments normally are, starting with argv[0], which is the name of the program. If the service is provided internally, the word should take the place of this entry. provides several services internally by use of routines within itself. These services are (character generator), (human readable time), and (machine readable time, in the form of the number of seconds since midnight, January 1, 1900). All of these services are tcp based. For details of these services, consult the appropriate from the Network Information Center. rereads its configuration file when it receives a hangup signal, Services may be added, deleted or modified when the configuration file is reread. creates a file that contains its process identifier.

SEE ALSO

HISTORY

The command appeared in Support for based services is modelled after that provided by


Table of Contents