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 --helpShow the help message and exit
-
--addA OpenSearch Dashboards service will be added.
-
--deleteThe OpenSearch Dashboards service will be removed.
-
--install_base_dir BASE_DIREnter the base directory (BASE_DIR) where you installed the OSK DPK.
To add OpenSearch Dashboards 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-osd-service.sh --add --install_base_dir BASE_DIR -
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 -
Use this command to verify that the process is running.
systemctl status opensearch-dashboardsThis 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