DCD-386: Convert Synchrony startup to new general systemd role.

This commit is contained in:
Steve Smith
2019-05-31 10:57:24 +10:00
parent 9e2eb50a6b
commit 8218547021
7 changed files with 10 additions and 40 deletions

View File

@@ -6,8 +6,6 @@
dest: "{{ atl_installation_base }}/bin/start-synchrony"
group: "{{ atl_product_user }}"
mode: "0750"
notify:
- Restart Synchrony
- name: Install the Synchrony environment settings
template:
@@ -15,13 +13,3 @@
dest: "/etc/atl.synchrony"
group: "{{ atl_product_user }}"
mode: "0640"
notify:
- Restart Synchrony
- name: "Install Synchrony service file"
template:
src: "synchrony.service.j2"
dest: "/etc/systemd/system/synchrony.service"
notify:
- Enable Synchrony
- Restart Synchrony

View File

@@ -1,9 +0,0 @@
---
- name: Restart Synchrony
service:
name: synchrony.service
state: restarted
- name: Enable Synchrony
command: systemctl enable synchrony.service

View File

@@ -1,17 +0,0 @@
[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
WorkingDirectory={{ atl_product_installation_current }}/logs/
ExecStart={{ atl_installation_base }}/bin/start-synchrony
Restart=on-failure
[Install]
WantedBy=multi-target.target