
In order to have a consistent systemd behavior across distributions, we define the Restart condition for the galera service file. The 'on-abort' option is currently the default in the upstream service file and it's also the most conservative one so we chose that to be the default option in the Ansible role as well. We also set a reasonably low RestartSec value as well. Change-Id: If442802f7aff4473cbb573ba1c123cfc46bde9b3
10 lines
320 B
Django/Jinja
10 lines
320 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[Service]
|
|
# Define the condition under which the service will be restarted
|
|
# on-abort is the most conservative one since that should capture unexpected
|
|
# failures but also exclude failures due to bad configurations. This is
|
|
# currently the upstream option as well
|
|
Restart=on-abort
|
|
RestartSec=5s
|