Skip to content

Commit f4c0829

Browse files
authored
Incorrect setup of Systemd restart value (#375)
1 parent f1acd94 commit f4c0829

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ENHANCEMENTS:
1616
* Minor GitHub template tweaks, including the creation of a SECURITY doc.
1717
* Update list of supported platforms.
1818
* Update Ansible base to `2.10.5`, Molecule to `3.2.3`, yamllint to `1.26.0` and Docker Python SDK to `4.4.4`.
19+
* Override of systemd `Restart` value by using proper `nginx_service_restart` variable.
1920

2021
BUG FIXES:
2122

templates/services/nginx.service.override.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ TimeoutStopSec={{ nginx_service_timeoutstopsec | default(90) }}
55
{% if nginx_service_restartonfailure is defined %}
66
Restart=on-failure
77
{% endif %}
8+
{% if nginx_service_restart is defined %}
9+
Restart={{ nginx_service_restart }}
10+
{% endif %}
811
{% if nginx_service_restartsec is defined %}
912
RestartSec={{ nginx_service_restartsec }}
1013
{% endif %}

0 commit comments

Comments
 (0)