리눅스 xinetd
IT 위키
- 다른 데몬의 실행을 관장하는 슈퍼데몬이다.
- 과거 슈퍼데몬으로 사용되었던 inetd를 대체하기 위해 등장하였다.
주요 구성
/etc/xinetd : 메인 설정파일 /etc/xinetd.d : 슈퍼데몬에 의해 제어되는 서비스 파일이 위치하는 디렉처리 /etc/rc.d/init.d/xinetd : xinetd를 제어하는 데몬 스크립트. start, stop, restart 등 사용
xinetd.conf
설정파일 샘플
#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.
defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
# enabled =
# disabled =
# Define general logging characteristics.
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT
# Define access restriction defaults
#
# no_access =
# only_from =
# max_load = 0
cps = 50 10
instances = 50
per_source = 10
# Address and networking defaults
#
# bind =
# mdns = yes
v6only = no
# setup environmental attributes
#
# passenv =
groups = yes
umask = 002
# Generally, banners are not used. This sets up their global defaults
#
# banner =
# banner_fail =
# banner_success =
}
설정 항목
- log_type
- SYSLOG와 FILE 두 가지 설정이 가능하다.
- 로그 기록을 syslog에 위임 할지, 별도 파일로 지정할지 선택한다.
# log_type = SYSLOG [facility] [로그레벨] log_type = SYSLOG daemon info
# log_type = FILE [파일명] log_type = FILE /var/logs/xinetd.log