2020-04-20 02:21:00 +02:00
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Loki
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Environment="GOMAXPROCS={{ ansible_processor_vcpus|default(ansible_processor_count) }}"
|
|
|
|
User={{ loki_user }}
|
|
|
|
Group={{ loki_group }}
|
2021-12-02 17:23:14 +01:00
|
|
|
WorkingDirectory={{ loki_storage_dir }}
|
2020-04-20 02:21:00 +02:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
ExecStart=/usr/local/bin/loki \
|
2020-05-04 23:48:42 +02:00
|
|
|
-config.file {{ loki_config_dir }}/loki.yml
|
2020-04-20 02:21:00 +02:00
|
|
|
|
|
|
|
LimitNOFILE=65000
|
|
|
|
SyslogIdentifier=loki
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|