Merge pull request #155 from atishaninov-xometry/pidfile-path

fix: alertmanager deprecated PIDFile= path warning
This commit is contained in:
gardar 2024-10-17 13:38:49 +00:00 committed by GitHub
commit cc205a35d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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