Skip to content

Commit

Permalink
Merge pull request #155 from atishaninov-xometry/pidfile-path
Browse files Browse the repository at this point in the history
fix: alertmanager deprecated PIDFile= path warning
  • Loading branch information
gardar authored Oct 17, 2024
2 parents e2c0480 + c487c8c commit cc205a3
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 cc205a3

Please sign in to comment.