Last active
January 18, 2019 21:44
-
-
Save jdart/7ceb7578ba932051b1f624d4b1eab8a9 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 Admin API | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
WorkingDirectory=/apps/searchapi/adminapi | |
User=atlasq | |
Group=atlasq | |
ExecStart=/usr/bin/java \ | |
-Xmx1G \ | |
-javaagent:/apps/newrelic/current/newrelic.jar \ | |
-Dnewrelic.config.file=/apps/newrelic/current/newrelic-AdminAPI.yml \ | |
-jar atlas-admin-api-0.0.1-SNAPSHOT.jar \ | |
-Dnewrelic.config.appserver_port=8082 \ | |
--spring.config.location=application.yml,users.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