DCD-224: Add systemd service for jira.

This commit is contained in:
Steve Smith
2019-04-17 13:16:27 +10:00
parent 1874454163
commit 31d40e1dae
4 changed files with 31 additions and 0 deletions

View File

@@ -15,3 +15,5 @@
- database_config
- jira_download
- jira_config
- jira_startup

View File

@@ -0,0 +1,7 @@
---
- name: Restart Jira
service: name=jira.service state=restarted
- name: Enable Jira
command: systemctl enable jira.service

View File

@@ -0,0 +1,10 @@
---
- name: Install Jira service file
template:
src: jira.service.j2
dest: /etc/systemd/system/jira.service
notify:
- Enable Jira
- Restart Jira

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Atlassian Jira
After=network-online.target
[Service]
User={{ atl_product_user }}
Group={{ atl_product_user }}
ExecStart={{ atl_product_installation_target }}/bin/start-jira.sh -fg
[Install]
WantedBy=multi-target.target