archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / opensearch / repos / community-x86_64 / opensearch.service
blob2f2b384602a15ca78cc8c5877d917c00e7baaad1
1 [Unit]
2 Description=OpenSearch
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
9 [Service]
10 Type=notify
11 RuntimeDirectory=opensearch
12 PrivateTmp=true
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
21 User=opensearch
22 Group=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
36 StandardError=inherit
38 # Specifies the maximum file descriptor number that can be opened by this process
39 LimitNOFILE=65535
41 # Specifies the maximum number of processes
42 LimitNPROC=4096
44 # Specifies the maximum size of virtual memory
45 LimitAS=infinity
47 # Specifies the maximum file size
48 LimitFSIZE=infinity
50 # Disable timeout logic and wait until process is stopped
51 TimeoutStopSec=0
53 # SIGTERM signal is used to stop the Java process
54 KillSignal=SIGTERM
56 # Send the signal only to the JVM rather than its control group
57 KillMode=process
59 # Java process is never killed
60 SendSIGKILL=no
62 # When a JVM receives a SIGTERM signal it exits with code 143
63 SuccessExitStatus=143
65 [Install]
66 WantedBy=multi-user.target