ansible-middleware / infinispan

Collection to install infinispan server configurations
Apache License 2.0
12 stars 9 forks source link

Provide systemd unit restart behavior configuration #26

Closed hwo-wd closed 1 year ago

hwo-wd commented 1 year ago

New variables allow to configure the infinispan systemd unit restart behaviour. The functionality is exposed via the main flag infinispan_service_restart_on_failure, enabled by default, and tuned with the other variables.

Variable Description Default
infinispan_service_restart_on_failure systemd restart-on-failure behavior activation True
infinispan_service_startlimitintervalsec systemd StartLimitIntervalSec 300 if infinispan_service_restart_on_failure else ``
infinispan_service_startlimitburst systemd StartLimitBurst 5 if infinispan_service_restart_on_failure else ``
infinispan_service_restartsec systemd RestartSec 10s if infinispan_service_restart_on_failure else ``

Splitted PR as discussed in #25