# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # Description: # Default opensearch-dashboards.service file [Unit] Description="OpenSearch Dashboards" [Service] Type=simple User=opensearch-dashboards Group=opensearch-dashboards # Load env vars from /etc/default/ and /etc/sysconfig/ if they exist. # Prefixing the path with '-' makes it try to load, but if the file doesn't # exist, it continues onward. EnvironmentFile=-/etc/default/opensearch-dashboards EnvironmentFile=-/etc/sysconfig/opensearch-dashboards ExecStart=/usr/share/opensearch-dashboards/bin/opensearch-dashboards Restart=always WorkingDirectory=/usr/share/opensearch-dashboards [Install] WantedBy=multi-user.target