File prometheus-alertmanager.service of Package golang-github-prometheus-alertmanager
31
1
[Unit]
2
Description=Alertmanager for prometheus
3
Documentation=https://prometheus.io/docs/alerting/alertmanager/
4
Wants=network-online.target
5
After=network-online.target
6
7
[Service]
8
# added automatically, for details please see
9
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
10
ProtectSystem=full
11
ProtectHome=true
12
PrivateDevices=true
13
ProtectHostname=true
14
ProtectClock=true
15
ProtectKernelTunables=true
16
ProtectKernelModules=true
17
ProtectKernelLogs=true
18
ProtectControlGroups=true
19
RestrictRealtime=true
20
# end of automatic additions
21
Restart=always
22
User=prometheus
23
EnvironmentFile=-/etc/sysconfig/prometheus-alertmanager
24
ExecStart=/usr/bin/prometheus-alertmanager $ARGS
25
ExecReload=/bin/kill -HUP $MAINPID
26
TimeoutStopSec=20s
27
SendSIGKILL=no
28
29
[Install]
30
WantedBy=multi-user.target
31