19 lines
486 B
Text
19 lines
486 B
Text
|
[Unit]
|
||
|
Description=Prometheus alertmanager.
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
|
||
|
PIDFile={{ prometheus_pid_path }}/alertmanager.pid
|
||
|
|
||
|
User={{ prometheus_user }}
|
||
|
Group={{ prometheus_group }}
|
||
|
|
||
|
{% if prometheus_opts is defined %}
|
||
|
ExecStart={{ alertmanager_daemon_dir }}/alertmanager {{ alertmanager_default_opts }} {{ alertmanager_opts }}
|
||
|
{% else %}
|
||
|
ExecStart={{ alertmanager_daemon_dir }}/alertmanager {{ alertmanager_default_opts }}
|
||
|
{% endif %}
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|