기동 및 종료

WebtoB를 기동 및 종료하기 위한 명령어와 각종 옵션에 대해 설명합니다.

WebtoB 시스템을 기동 및 종료하기 위해서 ${WEBTOB_HOME}/bin 디렉터리 하위의 webtob 바이너리를 사용합니다.

  • 사용법

    > webtob [-a <타깃 동작>][-c <설정 파일 이름>][-p <설정 파일 경로>][-t <강제 종료 시간>][-i][-v][-V][-L][-h]
    옵션 설명

    [-a <타깃 동작>]

    타깃 동작을 지정합니다. (기본값: start)

    • start

    • start-engine

    • start-manager

    • stop

    • stop-engine

    • stop-manager

    • restart

    [-c <설정 파일 이름>]

    설정 파일 이름을 지정합니다. (기본값: webtob-config.json)

    [-p <설정 파일 경로>]

    설정 파일 경로를 지정합니다. (기본값: ${WEBTOB_HOME}/config)

    [-t <강제 종료 시간>]

    종료 시 강제 종료까지의 타임아웃 시간(단위: 초)을 지정합니다. (기본값: 60)

    [-i]

    즉각 강제 종료를 수행합니다. 기본적으로 현재 수행 중인 업무를 완료하고 종료되지만, 이 옵션을 사용하면 업무 완료가 보장되지 않습니다.

    [-v]

    현재 WebtoB 버전 정보를 출력합니다.

    [-V]

    WebtoB를 verbose 모드로 기동합니다. 로그가 콘솔로 출력되고, foreground 프로세스로 동작하기 때문에 종료 전까지 해당 쉘을 사용할 수 없습니다.

    [-L]

    기본적으로 [-V] 옵션과 동일하지만, 환경 설정과 관계없이 로그 레벨이 DEBUG로 고정되어 출력됩니다.

    [-h]

    도움말을 출력합니다.

WebtoB 기동

WebtoB를 기동하려면 webtob 또는 webtob -a start 명령어를 실행합니다.

다음은 WebtoB를 기동하기 위해 webtob 명령을 실행하는 예시입니다.

$ webtob
Environment variables for WebtoB:
        WEBTOB_HOME = /home/webtob/

Welcome to WebtoB Demo system.
Enterprise edition License in used.
Success to load config files : webtob-config.json
******* Configuration initialized successfully *******
Current WebtoB Configuration:
        Number of client handlers (HTH) = 1
        Number of worker threads per handler (HTH) = 8
        Number of connection pool size per handler (HTH) = 8192

Today is 2025-06-12
License expires on 2099-12-31 (27230 days remaining)

Booting WebtoB on node (webtob)
Current maximum open files per node 1024
Limit of open files is increased from 1024 to 1048576
Version: WebtoB 6 Fix #1 Linux B0 epoll 2025.06.05
Starting Server(pid:93736) at Thu Jun 12 16:49:14 2025
WebtoB manager starts managing WebtoB process (PID: 1446773)

WebtoB 종료

WebtoB를 종료하려면 webtob -a stop 명령어를 실행합니다. 종료 전에 .webtob.pid 파일을 열어 현재 기동 중인 WebtoB가 있는지 확인 후 ${WEBTOB_HOME}/bin 디렉터리로 이동하여 webtob -a stop 명령을 실행해야 합니다.

다음은 WebtoB를 종료하기 위해 webtob -a stop 명령을 실행하는 예시입니다.

$ webtob -a stop
Environment variables for WebtoB:
        WEBTOB_HOME = /home/webtob/
Shutting down WebtoB
WebtoB process (PID: 93736) is terminated normally. Stop managing process.
WebtoB(pid: 93736) is stopped.
Shutting down WebtoB Manager
WebtoB Manager (PID: 1446773) is stopped.