2020-11-18 13:52:33 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system
|
|
|
|
Documentation=https://github.com/grafana/loki
|
|
|
|
|
|
|
|
[Service]
|
2021-10-29 13:55:27 +00:00
|
|
|
# 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
|
2020-11-18 13:52:33 +00:00
|
|
|
Restart=always
|
|
|
|
User=loki
|
|
|
|
EnvironmentFile=-/etc/sysconfig/loki
|
2020-12-09 13:34:26 +00:00
|
|
|
ExecStart=/usr/bin/loki -config.file=${CONFIG_FILE}
|
2020-11-18 13:52:33 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
TimeoutStopSec=20s
|
|
|
|
SendSIGKILL=no
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|