3 Documentation=https://opensearch.org/docs/opensearch/index/
4 Wants=opensearch-keystore.service
5 Wants=network-online.target
6 After=opensearch-keystore.service
7 After=network-online.target
11 RuntimeDirectory=opensearch
13 Environment=OPENSEARCH_HOME=/usr/share/opensearch
14 Environment=OPENSEARCH_PATH_CONF=/etc/opensearch
15 Environment=PID_DIR=/run/opensearch
16 Environment=OPENSEARCH_SD_NOTIFY=true
17 EnvironmentFile=-/etc/default/opensearch
19 WorkingDirectory=/usr/share/opensearch
24 PermissionsStartOnly=true
25 ExecStartPre=/usr/share/opensearch/bin/opensearch-keystore upgrade
27 ExecStart=/usr/share/opensearch/bin/opensearch -p ${PID_DIR}/opensearch.pid
29 # StandardOutput is configured to redirect to journalctl since
30 # some error messages may be logged in standard output before
31 # opensearch logging system is initialized. opensearch
32 # stores its logs in /var/log/opensearch and does not use
33 # journalctl by default. If you also want to enable journalctl
34 # logging, you can simply remove the "quiet" option from ExecStart.
35 StandardOutput=journal
38 # Specifies the maximum file descriptor number that can be opened by this process
41 # Specifies the maximum number of processes
44 # Specifies the maximum size of virtual memory
47 # Specifies the maximum file size
50 # Disable timeout logic and wait until process is stopped
53 # SIGTERM signal is used to stop the Java process
56 # Send the signal only to the JVM rather than its control group
59 # Java process is never killed
62 # When a JVM receives a SIGTERM signal it exits with code 143
66 WantedBy=multi-user.target