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

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

값이 설정된 계층 표시

서비스 구성 저장소에서는 등록 정보 데이터가 데이터 소스에 따라 계층에 저장됩니다. svcpropsvccfg 명령은 등록 정보 값의 소스인 계층을 표시할 수 있습니다. svcpropsvccfg 명령의 -l 옵션에는 정보를 표시하려는 계층을 지정할 인수가 필요합니다. 인수 값은 manifest, system-profile, site-profileadmin입니다. 출력에는 특정 등록 정보 값이 서비스 매니페스트 또는 프로파일에 설정되었는지, 아니면 관리자가 설정했는지가 표시됩니다. 계층에 대한 자세한 내용은 저장소 계층을 참조하십시오. 키워드 all은 모든 계층의 별칭입니다. 지정하는 계층이 요청한 등록 정보 값의 소스가 아니면 출력이 표시되지 않습니다.

다음 명령은 일부 등록 정보 값의 소스가 매니페스트이고, 일부는 관리자가 설정했으며, 일부 등록 정보의 값이 두 개 이상의 계층에 있음을 보여줍니다. pkg/readonly 등록 정보의 값은 서비스 매니페스트에 설정되고 관리자도 이와 같은 값을 설정합니다. 계층에 따라 값이 다를 수 있습니다.

$ svcprop -l all -p pkg pkg/server:s11
pkg/port count admin 81
pkg/inst_root astring admin /export/ipsrepos/Solaris11
pkg/address net_address manifest
pkg/cfg_file astring manifest ""
...
pkg/readonly boolean manifest true
pkg/readonly boolean admin true
...

svccfg listprop 명령의 -l 옵션이 인수 current를 사용할 수도 있습니다. current-l 인수로 사용하면 -l 옵션을 사용하지 않을 때 표시된 것과 같은 등록 정보 값이 표시됩니다. 출력의 유일한 차이는 계층 이름도 표시된다는 점입니다. 서비스 구성 저장소에는 비영구 데이터에 대한 계층 정보가 저장되지 않으므로 비영구 데이터에는 계층 이름이 표시되지 않습니다(세번째 열에는 <none>이 표시됨). 비영구 등록 정보 그룹은 일반적으로 활성 프로그램 상태를 포함하고 비영구 등록 정보 그룹의 등록 정보 값은 시스템 부트 중에 지워집니다.

$ svccfg -s pkg/server:s11 listprop -l current
pkg                                application admin
pkg/inst_root                     astring     admin     /export/ipsrepos/Solaris11
pkg/port                          count       admin     81
general                            framework   admin
general/complete                  astring     manifest
general/enabled                   boolean     admin     true
restarter                          framework   <none>       NONPERSISTENT
restarter/logfile                 astring      <none>    /var/svc/log/application-pkg-server:default.log
restarter/contract                count        <none>    121
restarter/start_pid               count        <none>    1055
restarter/start_method_timestamp  time         <none>    1379605275.329096000
restarter/start_method_waitstatus integer      <none>    0
restarter/auxiliary_state         astring      <none>    dependencies_satisfied
restarter/next_state              astring      <none>    none
restarter/state                   astring      <none>    online
restarter/state_timestamp         time         <none>    1379605275.332259000