Managing OpenSearch Dashboards Services
This appendix describes how you can manage the OpenSearch Dashboards service.
After you install OpenSearch Dashboards using the delivered DPK, you can add an OpenSearch Dashboards service, verify that the service is created, or delete the service.
Adding OpenSearch Dashboards as a Service on Linux
To add an OpenSearch Dashboards 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 one of these methods to verify that the service was added:
The output of the following
ps
command must show a running OpenSearch Dashboards process:ps -ef | grep node
Use the
systemctl
command:systemctl status opensearch-dashboards
This should give an output with the status "active (running)," as shown in the following sample:
opensearch-dashboards.service - OpenSearch Dashboards Loaded: loaded (/etc/systemd/system/opensearch-dashboards.service; enabled; vendorpreset: disabled) Active: active (running) since Wed 2023-03-29 07:37:14 UTC; 3s ago Main PID: 122155 (node) Tasks: 11 (limit: 190191) Memory: 108.4M CGroup: /system.slice/opensearch-dashboards.service
Verifying that the OpenSearch Dashboards Service Starts Automatically
After you install the OpenSearch Dashboards service and verify the installation, test to make sure the service starts automatically after you reboot the Linux server.
Reboot the Linux server.
Verify that the service has come up automatically.
systemctl status opensearch-dashboards
This should give an output with the status "active (running)," as shown in the following sample:
opensearch-dashboards.service - OpenSearch Dashboards Loaded: loaded (/etc/systemd/system/opensearch-dashboards.service; enabled; vendorpreset: disabled) Active: active (running) since Wed 2023-03-29 07:37:14 UTC; 3s ago Main PID: 122155 (node) Tasks: 11 (limit: 190191) Memory: 108.4M CGroup: /system.slice/opensearch-dashboards.service
Removing the OpenSearch Dashboards Service on Linux
To remove the OpenSearch Dashboards service:
Open a terminal window, running as root.
Change directory to OSK_INSTALL/setup:
cd OSK_INSTALL/setup
Run this command to remove the service:
./psft-osd-service.sh --delete
Use one of these methods to verify that the service was deleted:
The output of the following ps command should not include any OpenSearch Dashboards process:
ps -ef | grep node
Use the systemctl command:
systemctl status opensearch-dashboards