📄 connectd.8c
字号:
.TH INETD 8 "%Q%".UC 6.SH NAMEinetd \- internet ``super\-server''.SH SYNOPSIS.B /etc/inetd[.B \-d] [ configuration file ].SH DESCRIPTION.I Inetdshould be run at boot time by.IR /etc/rc.local .It then listens for connections on certaininternet sockets. When a connection is found on oneof its sockets, it decides what service the socketcorresponds to, and invokes a program to service the request.After the program isfinished, it continues to listen on the socket (except in some cases whichwill be described below). Essentially,.I inetdallows running one daemon to invoke several others,reducing load on the system..PPUpon execution,.I inetdreads its configuration information from a configurationfile which, by default, is.IR /etc/inetd.conf .There must be an entry for each field of the configurationfile, with entries for each field separated by a tab ora space. Comments are denoted by a ``#'' at the beginningof a line. There must be an entry for each field. Thefields of the configuration file are as follows:.br service name.br socket type.br protocol.br wait/nowait.br user.br server program.br server program arguments.PPThe.I service nameentry is the name of a valid service inthe file.IR /etc/services/ .For ``internal'' services (discussed below), the servicename.I mustbe the official name of the service (that is, the first entry in.IR /etc/services )..PPThe.I socket typeshould be one of ``stream'', ``dgram'', ``raw'', ``rdm'', or ``seqpacket'',depending on whether the socket is a stream, datagram, raw,reliably delivered message, or sequenced packet socket..PPThe.I protocolmust be a valid protocol as given in.IR /etc/protocols .Examples might be ``tcp'' or ``udp''..PPThe.I wait/nowaitentry is applicable to datagram sockets only (other sockets shouldhave a ``nowait'' entry in this space). If a datagram server connectsto its peer, freeing the socket so.I inetdcan received further messages on the socket, it is said to bea ``multi-threaded'' server, and should use the ``nowait''entry. For datagram servers which process all incoming datagramson a socket and eventually time out, the server is said to be``single-threaded'' and should use a ``wait'' entry. ``Comsat'' (``biff'')and ``talk'' are both examples of the latter type ofdatagram server..I Tftpdis an exception; it is a datagram server that establishes pseudo-connections.It must be listed as ``wait'' in order to avoid a race;the server reads the first packet, creates a new socket,and then forks and exits to allow.I inetdto check for new service requests to spawn new servers..PPThe.I userentry should contain the user name of the user as whom the servershould run. This allows for servers to be given less permissionthan root.The.I server programentry should contain the pathname of the program which is to beexecuted by.I inetdwhen a request is found on its socket. If.I inetdprovides this service internally, this entry shouldbe ``internal''..PPThe arguments to the server program should be just as theynormally are, starting with argv[0], which is the name ofthe program. If the service is provided internally, theword ``internal'' should take the place of this entry..PP.I Inetdprovides several ``trivial'' services internally by use ofroutines within itself. 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, January1, 1900). All of these services are tcp based. Fordetails of these services, consult the appropriate RFCfrom the Network Information Center..PP.I Inetdrereads its configuration file when it receives a hangup signal, SIGHUP.Services may be added, deleted or modified when the configuration fileis reread..SH "SEE ALSO"comsat(8C), ftpd(8C), rexecd(8C), rlogind(8C), rshd(8C),telnetd(8C), tftpd(8C)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -