DCD-352: First cut of a synchrony startup script.

This commit is contained in:
Steve Smith
2019-05-28 14:06:45 +10:00
parent de9453b8ca
commit b23a2a40d8
8 changed files with 171 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
# Generated by Ansible Synchrony playbook. Usually sourced with
# EnvironmentFile in the systemd service file.
ATL_SYNCHRONY_SERVICE_NAME="synchrony"
ATL_CONFLUENCE_INSTALL_DIR="{{ atl_product_installation_current }}"
ATL_CONFLUENCE_SHARED_CONFIG_FILE="{{ atl_product_home_shared }}/confluence.cfg.xml"
ATL_SYNCHRONY_JAR_PATH="{{ atl_product_installation_current }}/confluence/WEB-INF/packages/synchrony-standalone.jar"
AWS_EC2_PRIVATE_IP="{{ atl_local_ipv4 }}"
_RUNJAVA="{{ atl_product_installation_current }}/jre/bin/java"
ATL_SYNCHRONY_JVM_PROPERTIES="{{ atl_synchrony_stack_space }} {{ atl_synchrony_memory }} \
-Dsynchrony.cluster.impl=hazelcast-btf \
-Dsynchrony.database.url={{ atl_jdbc_url }} \
-Dsynchrony.database.username={{ atl_jdbc_user }} \
-Dsynchrony.database.password={{ atl_jdbc_password }} \
-Dsynchrony.bind={{ atl_local_ipv4 }} \
-Dsynchrony.cluster.bind={{ atl_local_ipv4 }} \
-Dcluster.interfaces={{ atl_local_ipv4 }} \
-Dsynchrony.cluster.base.port=25500 \
-Dsynchrony.service.url={{ atl_synchrony_service_url }} \
-Dsynchrony.context.path=/synchrony \
-Dsynchrony.port=8091 \
-Dcluster.name=Synchrony-Cluster \
-Dcluster.join.type={{ atl_synchrony_cluster_type }} \
-Dcluster.join.aws.tag.key={{ atl_hazelcast_network_aws_tag_key }} \
-Dcluster.join.aws.tag.value={{ atl_hazelcast_network_aws_tag_value }} \
-Dcluster.join.aws.region={{ atl_hazelcast_network_aws_iam_region }}

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Atlassian Synchrony Server
After=network-online.target
[Service]
User={{ atl_product_user }}
Group={{ atl_product_user }}
EnvironmentFile=/etc/atl
EnvironmentFile=/etc/atl.synchrony
ExecStart={{ atl_product_installation_current }}/bin/{{ atl_startup_script_map[atl_product_family] }} -fg
Restart=on-failure
[Install]
WantedBy=multi-target.target