리눅스 xinetd: 두 판 사이의 차이

IT위키
편집 요약 없음
편집 요약 없음
13번째 줄: 13번째 줄:
===주요 내용 샘플===
===주요 내용 샘플===
<pre class='shell'>
<pre class='shell'>
#
# 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
defaults
{
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
#      enabled        =
#      disabled        =
#      disabled        =
# Define general logging characteristics.
         log_type        = SYSLOG daemon info
         log_type        = SYSLOG daemon info
         log_on_failure  = HOST
         log_on_failure  = HOST
         log_on_success  = PID HOST DURATION EXIT
         log_on_success  = PID HOST DURATION EXIT
# Define access restriction defaults
#
#      no_access      =
#      only_from      =
#      max_load        = 0
         cps            = 50 10
         cps            = 50 10
         instances      = 50
         instances      = 50
         per_source      = 10
         per_source      = 10
# Address and networking defaults
#
#      bind            =
#      mdns            = yes
         v6only          = no
         v6only          = no
# setup environmental attributes
#
#      passenv        =
         groups          = yes
         groups          = yes
         umask          = 002
         umask          = 002
# Generally, banners are not used. This sets up their global defaults
#
#      banner          =
#      banner_fail    =
#      banner_success  =
}
}
</pre>
</pre>

2018년 4월 27일 (금) 22:48 판

  • 다른 데몬의 실행을 관장하는 슈퍼데몬이다.
  • 과거 슈퍼데몬으로 사용되었던 inetd를 대체하기 위해 등장하였다.

주요 구성

/etc/xinetd : 메인 설정파일 /etc/xinetd.d : 슈퍼데몬에 의해 제어되는 서비스 파일이 위치하는 디렉처리 /etc/rc.d/init.d/xinetd : xinetd를 제어하는 데몬 스크립트. start, stop, restart 등 사용

xinetd.conf

초기 설정파일 전문 보기 (리눅스 xinetd.conf)


주요 내용 샘플

defaults
{
#       disabled        =
        log_type        = SYSLOG daemon info
        log_on_failure  = HOST
        log_on_success  = PID HOST DURATION EXIT
        cps             = 50 10
        instances       = 50
        per_source      = 10
        v6only          = no
        groups          = yes
        umask           = 002
}


설정 항목

  • log_type
    • SYSLOG와 FILE 두 가지 설정이 가능하다.
    • 로그 기록을 syslog에 위임 할지, 별도 파일로 지정할지 선택한다.
# log_type = SYSLOG [facility] [로그레벨]
log_type = SYSLOG daemon info
# log_type = FILE [파일명]
log_type = FILE /var/logs/xinetd.log