Add insist option to lsyncd

Without insist, lsyncd will quit if any of its slaves are unavailable at
startup. This enforces a strict restart ordering - the master repo
server must come up last.

In order to remove this restriction the -insist option is added to
lsyncd. This causes lsyncd to retry the initial connection to each slave
so that even if the master comes up first, connections will eventually
be established.

Change-Id: I12e3dca147b5cb25ed982d5aceb9d521728c4e53
Closes-Bug: #1572433
This commit is contained in:
Hugh Saunders 2016-04-20 09:07:29 +01:00
parent 3a04b14779
commit bbc038c87b
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@
dest: "{{ item.dest }}"
with_items:
- { src: "lsyncd.lua.j2", dest: "/etc/lsyncd/lsyncd.conf.lua" }
- { src: "lsyncd.defaults.j2", dest: "/etc/default/lsyncd" }
notify:
- reload lsyncd
when: >

View File

@ -0,0 +1 @@
DAEMON_ARGS="$DAEMON_ARGS -insist"