5.6.2 Adding an OpenSearch Service
The script to add or delete the service uses the following arguments:
-
-h or --helpShow the help message and exit.
-
--addAn OpenSearch service will be added.
-
--deleteThe OpenSearch service will be removed.
-
--install_base_dir BASE_DIREnter the base directory (BASE_DIR) where you installed the OSK DPK.
To add OpenSearch as a service:
-
Open a terminal window, running as root.
-
Change directory to OSK_INSTALL/setup:
cd OSK_INSTALL/setup -
Run this command to add the service:
./psft-os-service.sh --add --install_base_dir BASE_DIR -
Use this command to verify that the service was added.
The output of the following ps command must show a running OpenSearch process:
ps -ef | grep opensearch -
Use this systemctl command to check if a service is started for OpenSearch:
systemctl status opensearchThis should give an output with the status “active (running),” as shown in bold font in this sample:
opensearch.service - OpenSearch Loaded: loaded (/etc/systemd/system/opensearch.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2020-09-01 22:24:38 PDT; 12s ago Docs: https://opensearch.org Main PID: 59416 (java) Tasks: 34 Memory: 2.2G CGroup: /system.slice/opensearch.service