Oracle® Solaris 11.2의 시스템 서비스 관리

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

서비스가 종속된 인스턴스 나열

svcs -d 명령은 지정된 서비스가 종속된 서비스 인스턴스를 나열합니다.

이 예에서는 system-repository 서비스가 종속된 서비스 인스턴스를 보여줍니다.

$ svcs -d system-repository
STATE          STIME    FMRI
online         Sep_09   svc:/milestone/network:default
online         Sep_09   svc:/system/filesystem/local:default
online         Sep_09   svc:/system/filesystem/autofs:default

svcs -l 명령은 지정된 서비스가 종속된 서비스도 나열합니다. 종속성의 이름과 상태 이외에 -l 옵션 출력에는 종속성의 유형이나 그룹 및 restart_on 등록 정보 값이 표시됩니다. 이 예에서 종속성의 두 개는 필수이고 하나는 선택 사항입니다. 이러한 그룹의 종속성이 종속 서비스에 영향을 미치는 방식에 대한 자세한 내용은 종속성 그룹을 참조하십시오. 종속성의 restart_on 등록 정보에 대한 여러 가지 값이 종속 서비스에 영향을 미치는 방식에 대한 자세한 내용은 종속성 그룹을 참조하십시오.

$ svcs -l system-repository
fmri         svc:/application/pkg/system-repository:default
name         IPS System Repository
enabled      false
state        disabled
next_state   none
state_time   Mon Sep 09 18:42:28 2013
restarter    svc:/system/svc/restarter:default
manifest     /lib/svc/manifest/application/pkg/pkg-system-repository.xml
dependency   require_all/error svc:/milestone/network:default (online)
dependency   require_all/none svc:/system/filesystem/local:default (online)
dependency   optional_all/error svc:/system/filesystem/autofs:default (online)

svcprop 명령을 사용하여 이러한 종속성을 나열할 수도 있습니다. 이 양식에는 종속성의 그룹 및 restart_on 값이 개별 행에 표시되고 종속성 상태는 표시되지 않습니다.

$ svcprop -g dependency system-repository:default
network/entities fmri svc:/milestone/network:default
network/grouping astring require_all
network/restart_on astring error
network/type astring service
filesystem-local/entities fmri svc:/system/filesystem/local:default
filesystem-local/grouping astring require_all
filesystem-local/restart_on astring none
filesystem-local/type astring service
autofs/entities fmri svc:/system/filesystem/autofs:default
autofs/grouping astring optional_all
autofs/restart_on astring error
autofs/type astring service