このコンテンツは選択した言語では利用できません。
17.4. xinetd Configuration Files
The configuration files for
xinetd
are as follows:
/etc/xinetd.conf
— The globalxinetd
configuration file./etc/xinetd.d/
— The directory containing all service-specific files.
17.4.1. The /etc/xinetd.conf
File
The
/etc/xinetd.conf
file contains general configuration settings which effect every service under xinetd
's control. It is read once when the xinetd
service is started, so for configuration changes to take effect, the administrator must restart the xinetd
service. Below is a sample /etc/xinetd.conf
file:
defaults { instances = 60 log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST cps = 25 30 } includedir /etc/xinetd.d
These lines control the following aspects of
xinetd
:
instances
— Sets the maximum number of requestsxinetd
can handle at once.log_type
— Configuresxinetd
to use theauthpriv
log facility, which writes log entries to the/var/log/secure
file. Adding a directive such asFILE /var/log/xinetdlog
would create a custom log file calledxinetdlog
in the/var/log/
directory.log_on_success
— Configuresxinetd
to log if the connection is successful. By default, the remote host's IP address and the process ID of server processing the request are recorded.log_on_failure
— Configuresxinetd
to log if there is a connection failure or if the connection is not allowed.cps
— Configuresxinetd
to allow no more than 25 connections per second to any given service. If this limit is reached, the service is retired for 30 seconds.includedir
/etc/xinetd.d/
— Includes options declared in the service-specific configuration files located in the/etc/xinetd.d/
directory. Refer to Section 17.4.2, “The/etc/xinetd.d/
Directory” for more information.
Note
Often, both the
log_on_success
and log_on_failure
settings in /etc/xinetd.conf
are further modified in the service-specific log files. For this reason, more information may appear in a given service's log than the /etc/xinetd.conf
file may indicate. Refer to Section 17.4.3.1, “Logging Options” for additional information.