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:
parent
3a04b14779
commit
bbc038c87b
@ -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: >
|
||||
|
1
templates/lsyncd.defaults.j2
Normal file
1
templates/lsyncd.defaults.j2
Normal file
@ -0,0 +1 @@
|
||||
DAEMON_ARGS="$DAEMON_ARGS -insist"
|
Loading…
x
Reference in New Issue
Block a user