Last active
January 18, 2019 21:44
-
-
Save jdart/a258365f113574cdaaf9afb50236f08c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Atlas SAPI | |
Wants=network-online.target | |
After=network-online.target atlas-admin-api.service | |
[Service] | |
WorkingDirectory=/apps/searchapi/sapi | |
User=atlasq | |
Group=atlasq | |
ExecStart=/usr/bin/java \ | |
-XX:+UseCompressedOops \ | |
-XX:+UseG1GC \ | |
-XX:MaxDirectMemorySize=8G \ | |
-Xmx20G \ | |
-javaagent:/apps/newrelic/current/newrelic.jar \ | |
-Dnewrelic.config.file=/apps/newrelic/current/newrelic-SearchAPI.yml \ | |
-jar atlas-search-api-0.0.1-SNAPSHOT.jar \ | |
-Dnewrelic.config.appserver_port=8080 \ | |
--spring.config.location=application.yml \ | |
--logging.config=logback.xml | |
StandardOutput=null | |
StandardError=null | |
UMask=0002 | |
# Specifies the maximum file descriptor number that can be opened by this process | |
LimitNOFILE=65536 | |
# Specifies the maximum number of processes | |
LimitNPROC=4096 | |
# Specifies the maximum size of virtual memory | |
LimitAS=infinity | |
# Specifies the maximum file size | |
LimitFSIZE=infinity | |
# Disable timeout logic and wait until process is stopped | |
TimeoutStopSec=0 | |
# SIGTERM signal is used to stop the Java process | |
KillSignal=SIGTERM | |
# Send the signal only to the JVM rather than its control group | |
KillMode=process | |
# Java process is never killed | |
SendSIGKILL=no | |
# When a JVM receives a SIGTERM signal it exits with code 143 | |
SuccessExitStatus=143 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment