Skip to content
Snippets Groups Projects
Commit c7ea6b7c authored by McConahy, Renee Margaret's avatar McConahy, Renee Margaret
Browse files

Make LOCKSS's services automatically restart.

I don't know why LOCKSS chose to override Docker's default of restarting
stopped containers. Without this, the only LOCKSS services that come up
after a reboot are the two that do not exit cleanly.
parent 68d9a86a
No related branches found
No related tags found
No related merge requests found
--- a/config/docker-compose.mustache
+++ b/config/docker-compose.mustache
@@ -37,7 +37,6 @@
# replicas: 1
mode: global
restart_policy:
- condition: on-failure
delay: 10s
max_attempts: 5
window: 120s
......@@ -125,10 +125,23 @@
dest: /usr/src/lockss
version: "{{ lockss_git_version }}"
depth: 1
force: true
become: true
become_user: lockss
when: not ansible_check_mode
- name: Install patch.
package:
name: patch
state: present
- name: Patch LOCKSS deployment configuration.
patch:
basedir: /usr/src/lockss
src: "{{ role_path }}/files/restart_automatically.patch"
strip: 1
when: not ansible_check_mode
- name: Install ifconfig.
package:
name: net-tools
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment