mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-21 19:33:04 +00:00
Merge pull request #155 from atishaninov-xometry/pidfile-path
fix: alertmanager deprecated PIDFile= path warning
This commit is contained in:
commit
cc205a35d2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue