Use systemd service for confluence

This commit is contained in:
Markus 2018-02-28 14:23:53 +01:00
parent 7d6ce37e54
commit 91a450e336
5 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Confluence
After=network.target
[Service]
ExecStart=/bin/su confluence /opt/atlassian-confluence/bin/start-confluence.sh
ExecStop=/bin/su confluence /opt/atlassian-confluence/bin/stop-confluence.sh
[Install]
WantedBy=multi-user.target

View File

@ -2,3 +2,6 @@
- name: Restart nginx
service: name=nginx state=restarted
- name: Reload systemd
command: systemctl daemon-reload

View File

@ -6,6 +6,10 @@
- postgresql
- python-psycopg2
- name: Install systemd unit
copy: src=confluence.service dest=/lib/systemd/system/confluence.service
notify: Reload systemd
- name: Configure PostgreSQL database
postgresql_db: name={{ confluence_dbname }}
become: true

View File

@ -7,7 +7,7 @@
git: repo={{ respondd_announce_git_root }} dest=/opt/{{ site_code }}/respondd-announce/ version={{ respondd_announce_git_version }}
notify: Restart respondd
- name: Install system unit
- name: Install systemd unit
template: src=respondd.service.j2 dest=/lib/systemd/system/respondd.service
notify:
- Reload systemd

View File

@ -21,7 +21,7 @@
- "{{ yanic_meshviewer_path }}"
- /var/lib/yanic
- name: Install system unit
- name: Install systemd unit
copy: src=yanic.service dest=/lib/systemd/system/yanic.service
notify:
- Reload systemd