2 Description=OpenSearch %I
3 Documentation=https://opensearch.org
4 Wants=opensearch-keystore@%i.service
5 Wants=network-online.target
6 After=opensearch-keystore@%i.service
7 After=network-online.target
11 RuntimeDirectory=opensearch
13 Environment=OPENSEARCH_HOME=/usr/share/opensearch
14 Environment=OPENSEARCH_PATH_CONF=/etc/opensearch/%I
15 Environment=PID_DIR=/run/opensearch
16 Environment=OPENSEARCH_SD_NOTIFY=true
17 EnvironmentFile=-/etc/default/opensearch
18 PIDFile=/run/opensearch/%I.pid
20 WorkingDirectory=/usr/share/opensearch
25 PermissionsStartOnly=true
26 ExecStartPre=/usr/share/opensearch/bin/opensearch-keystore upgrade
28 ExecStart=/usr/share/opensearch/bin/opensearch -p ${PID_DIR}/%I.pid
30 # StandardOutput is configured to redirect to journalctl since
31 # some error messages may be logged in standard output before
32 # opensearch logging system is initialized. opensearch
33 # stores its logs in /var/log/opensearch and does not use
34 # journalctl by default. If you also want to enable journalctl
35 # logging, you can simply remove the "quiet" option from ExecStart.
36 StandardOutput=journal
39 # Specifies the maximum file descriptor number that can be opened by this process
42 # Specifies the maximum number of processes
45 # Specifies the maximum size of virtual memory
48 # Specifies the maximum file size
51 # Disable timeout logic and wait until process is stopped
54 # SIGTERM signal is used to stop the Java process
57 # Send the signal only to the JVM rather than its control group
60 # Java process is never killed
63 # When a JVM receives a SIGTERM signal it exits with code 143
67 WantedBy=multi-user.target