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

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

ttymon 등록 정보 값을 수정하는 방법

이 절차에서는 ttymon에 전달되는 매개변수를 수정하는 방법을 보여줍니다.

  1. 수정할 서비스를 식별합니다.

    ttymon(1M) 매뉴얼 페이지에는 수정할 서비스가 svc:/system/console-login이라고 설명됩니다. ttymon(1M) 매뉴얼 페이지에는 ttymon 등록 정보 그룹의 등록 정보에 대한 설명도 있습니다.

    다음 명령은 이 이미지에 있는 console-login 서비스의 여러 인스턴스를 보여주고 default 인스턴스가 현재 온라인 상태의 유일한 인스턴스임을 보여줍니다.

    $ svcs console-login
    STATE          STIME    FMRI
    disabled       10:49:43 svc:/system/console-login:terma
    disabled       10:49:43 svc:/system/console-login:termb
    online         10:50:54 svc:/system/console-login:default
  2. 수정할 등록 정보를 식별합니다.

    다음 명령은 default 인스턴스의 ttymon 등록 정보 그룹에서 각 등록 정보의 이름, 데이터 유형, 값 및 간단한 설명을 보여줍니다.

    $ svccfg -s console-login:default describe ttymon
    ttymon                application
    ttymon/device        astring     /dev/console
        The terminal device to be used for the console login prompt.
    ttymon/terminal_type astring
        Sets the initial value of the TERM environment variable

    이전 출력에는 terminal_type 등록 정보에 대한 값이 표시되지 않습니다. 다음 명령은 console-login:default 인스턴스의 ttymon/terminal_type 등록 정보 값이 현재 null임을 확인합니다.

    $ svcprop -p ttymon/terminal_type console-login:default
    ""
  3. 등록 정보 값을 수정합니다.

    다음 명령을 입력하여 console-login:default 인스턴스의 ttymon/terminal_type 등록 정보 값을 xterm으로 변경합니다.

    $ svccfg -s system/console-login:default setprop ttymon/terminal_type=xterm
  4. 실행 중인 스냅샷에 새 값 커밋

    다음 출력은 terminal_type 등록 정보 값이 편집 구성에서 변경되었지만 실행 중인 스냅샷에서 변경되지 않았음을 보여줍니다.

    $ svccfg -s console-login:default listprop ttymon/terminal_type
    ttymon/terminal_type astring     xterm
    $ svcprop -p ttymon/terminal_type console-login:default
    ""

    서비스 인스턴스를 새로 고친 후 등록 정보 값이 실행 중인 스냅샷에서 변경됩니다.

    $ svcadm refresh console-login:default
    $ svcprop -p ttymon/terminal_type console-login:default
    xterm