Starting and Stopping BPC

For BPC to work, the two system components OpenSearch and Karaf must be started. These can be started and stopped together using a script or individually.

If you have set up Services for the BPC system components, then start and stop the BPC according to the instructions at Services.

Start and Stop Scripts

The provided scripts start both OpenSearch and Karaf.

Information on installing the scripts can be found in the installation guide.

Prerequisites

To use the scripts, the BPC directory structure must comply with the specifications in the installation guide.

Directory Structure According to the Installation Guide
Diagram

Usage

The following examples demonstrate how to use the scripts.

  • Unix Systems

  • Windows systems

Start BPC as a background process
start_bpc.sh
Display help for the script
start_bpc.sh -h
start_bpc.sh --help
Start BPC with the Karaf console active
start_bpc.sh --console

If the Karaf console is active, Karaf will be terminated as soon as the console is closed.

Stop BPC
stop_bpc.sh
Start BPC as a background process
start_bpc.bat
Display help for the script
start_bpc.bat -h
start_bpc.bat --help
Start BPC with the Karaf console active
start_bpc.bat --console

If the Karaf console is active, Karaf will be terminated as soon as the console is closed.

Stop BPC
stop_bpc.bat

OpenSearch

You can start OpenSearch directly from your terminal:

  • Unix systems

  • Windows systems

<BPC-INSTALL-DIR>/opensearch/bin/opensearch -d
<BPC-INSTALL-DIR>\opensearch\bin\opensearch -d

To stop the component, you can terminate the corresponding process:

  • Unix systems

  • Windows systems

kill PROZESS_ID
taskkill /pid PROZESS_ID

The process should not be forcefully terminated. A "hard" termination of the process can lead to data loss.

For more information, visit OpenSearch.

Karaf

You can start Karaf directly from your terminal:

  • Unix systems

  • Windows systems

<BPC-INSTALL-DIR>/karaf/bin/start
<BPC-INSTALL-DIR>\karaf\bin\start

To stop the component, you can run the following:

  • Unix systems

  • Windows systems

<BPC-INSTALL-DIR>/karaf/bin/stop
<BPC-INSTALL-DIR>\karaf\bin\stop

For more information, visit Karaf.


Keywords: