Skip to content

Commit

Permalink
fix deprecated pidfile path warning
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoliy Tishaninov <[email protected]>
  • Loading branch information
atishaninov-xometry committed Jul 11, 2023
1 parent 1b5a051 commit c487c8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/alertmanager/templates/alertmanager.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ StartLimitIntervalSec=0

[Service]
Type=simple
{% if (ansible_facts.packages.systemd | first).version is version('239', '>=') %}
PIDFile=/run/alertmanager.pid
{% else %}
PIDFile=/var/run/alertmanager.pid
{% endif %}
User=alertmanager
Group=alertmanager
ExecReload=/bin/kill -HUP $MAINPID
Expand Down

0 comments on commit c487c8c

Please sign in to comment.