본문으로 건너뛰기

s6-overlay

References
정보

설치와 서비스 설정 문서는 별도로 분리되어 있습니다.

s6-overlay

s6 is a collection of utilities revolving around process supervision and management, logging, and system initialization.

s6-overlay는 s6를 사용하여 컨테이너의 프로세스들을 관리하도록 도와주는 도구 모음입니다.

컨테이너를 실행 후 프로세스를 보면 아래와 같은 구조와 로그를 확인할 수 있습니다.

root@6a91358e31c0:/# pstree
s6-svscan-+-rc.init---<mainService>
|-s6-supervise---s6-linux-init-s
|-s6-supervise---<service>
|-s6-supervise
`-s6-supervise---s6-ipcserverd
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service test-service: starting
s6-rc: info: service test-service successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started

# 메인 서비스 실행
# ...

s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service test-service: stopping
s6-rc: info: service test-service successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped