Use systemd service for confluence
This commit is contained in:
parent
7d6ce37e54
commit
91a450e336
10
roles/confluence/files/confluence.service
Normal file
10
roles/confluence/files/confluence.service
Normal 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
|
@ -2,3 +2,6 @@
|
|||||||
|
|
||||||
- name: Restart nginx
|
- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
|
||||||
|
- name: Reload systemd
|
||||||
|
command: systemctl daemon-reload
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
- postgresql
|
- postgresql
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
|
|
||||||
|
- name: Install systemd unit
|
||||||
|
copy: src=confluence.service dest=/lib/systemd/system/confluence.service
|
||||||
|
notify: Reload systemd
|
||||||
|
|
||||||
- name: Configure PostgreSQL database
|
- name: Configure PostgreSQL database
|
||||||
postgresql_db: name={{ confluence_dbname }}
|
postgresql_db: name={{ confluence_dbname }}
|
||||||
become: true
|
become: true
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
git: repo={{ respondd_announce_git_root }} dest=/opt/{{ site_code }}/respondd-announce/ version={{ respondd_announce_git_version }}
|
git: repo={{ respondd_announce_git_root }} dest=/opt/{{ site_code }}/respondd-announce/ version={{ respondd_announce_git_version }}
|
||||||
notify: Restart respondd
|
notify: Restart respondd
|
||||||
|
|
||||||
- name: Install system unit
|
- name: Install systemd unit
|
||||||
template: src=respondd.service.j2 dest=/lib/systemd/system/respondd.service
|
template: src=respondd.service.j2 dest=/lib/systemd/system/respondd.service
|
||||||
notify:
|
notify:
|
||||||
- Reload systemd
|
- Reload systemd
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
- "{{ yanic_meshviewer_path }}"
|
- "{{ yanic_meshviewer_path }}"
|
||||||
- /var/lib/yanic
|
- /var/lib/yanic
|
||||||
|
|
||||||
- name: Install system unit
|
- name: Install systemd unit
|
||||||
copy: src=yanic.service dest=/lib/systemd/system/yanic.service
|
copy: src=yanic.service dest=/lib/systemd/system/yanic.service
|
||||||
notify:
|
notify:
|
||||||
- Reload systemd
|
- Reload systemd
|
||||||
|
Loading…
Reference in New Issue
Block a user