DCD-224: Add required environment to Jira service file.

This commit is contained in:
Steve Smith
2019-04-17 14:30:31 +10:00
parent 87c5b0ba81
commit ce864ebd8c
2 changed files with 11 additions and 0 deletions

View File

@@ -47,3 +47,12 @@ atl_jdbc_url: "jdbc:postgresql://{{ atl_db_host }}:{{ atl_db_port }}/{{ atl_jdbc
atl_jvm_heap: "{{ lookup('env', 'ATL_JVM_HEAP) or '2048m' }}" atl_jvm_heap: "{{ lookup('env', 'ATL_JVM_HEAP) or '2048m' }}"
atl_catalina_opts: "{{ lookup('env', 'ATL_CATALINA_OPTS) or '' }}" atl_catalina_opts: "{{ lookup('env', 'ATL_CATALINA_OPTS) or '' }}"
atl_catalina_opts_extra: >-
-XX:+UseG1GC
-XX:+PrintAdaptiveSizePolicy
-XX:+PrintGCDetails
-XX:NumberOfGCLogFiles=10
-XX:GCLogFileSize=5m
-XX:+UseGCLogFileRotation
-XX:+PrintTenuringDistribution
-Dfile.encoding=UTF-8

View File

@@ -6,6 +6,8 @@ After=network-online.target
User={{ atl_product_user }} User={{ atl_product_user }}
Group={{ atl_product_user }} Group={{ atl_product_user }}
Environment=JIRA_HOME="{{ atl_product_home }}"
Environment=CATALINA_OPTS="{{ atl_catalina_opts }} {{ atl_catalina_opts }}"
ExecStart={{ atl_product_installation_target }}/bin/start-jira.sh -fg ExecStart={{ atl_product_installation_target }}/bin/start-jira.sh -fg
[Install] [Install]