5.7.2 Adding an OpenSearch Dashboards Service

The script to add or delete the service for OpenSearch Dashboards uses the following arguments:

  • -h or --help

    Show the help message and exit

  • --add

    A OpenSearch Dashboards service will be added.

  • --delete

    The OpenSearch Dashboards service will be removed.

  • --install_base_dir BASE_DIR

    Enter the base directory (BASE_DIR) where you installed the OSK DPK.

To add OpenSearch Dashboards as a service:

  1. Open a terminal window, running as root.

  2. Change directory to OSK_INSTALL/setup:

    cd OSK_INSTALL/setup
  3. Run this command to add the service:

    ./psft-osd-service.sh --add --install_base_dir BASE_DIR
                   
  4. Use this command to verify that the service was added:.

    The output of the command must show a running OpenSearch Dashboards process.

    ps -ef | grep node
  5. Use this command to verify that the process is running.

    systemctl status opensearch-dashboards

    This should give an output with the status “active (running),” as shown in bold font in this sample:

    opensearch-dashboards.service - OpenSearch-Dashboards
       Loaded: loaded (/etc/systemd/system/opensearch-dashboards.service; enabled; vendor preset: disabled)
       Active: active (running) since Tue 2020-09-01 23:05:38 PDT; 9s ago
    Main PID: 67149 (node)
        Tasks: 11
       Memory: 111.7M
       CGroup: /system.slice/openSearch-dashboards.service