loki/promtail.service
Eric Schirra 651e12f22b Accepting request 940653 from home:ecsos:monitoring
- Change user in promtail.service from loki to root.
  Without run as root promtail can not tail logfiles.
- Update to version 2.4.1+git.1636374074.f61a4d261:
- Also included change from Robert Munteanu

OBS-URL: https://build.opensuse.org/request/show/940653
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/loki?expand=0&rev=13
2021-12-15 07:39:32 +00:00

28 lines
763 B
Desktop File

[Unit]
Description=promtail is the agent responsible for gathering logs and sending them to Loki.
Documentation=https://github.com/grafana/loki/blob/master/docs/promtail.md
[Service]
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectSystem=full
ProtectHome=true
PrivateDevices=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
Restart=always
User=root
EnvironmentFile=-/etc/sysconfig/promtail
ExecStart=/usr/bin/promtail -config.file=${CONFIG_FILE}
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=20s
SendSIGKILL=no
[Install]
WantedBy=multi-user.target