ansible/roles/loki/templates/loki.service.j2

19 lines
333 B
Plaintext
Raw Normal View History

2022-08-30 12:48:13 +00:00
{{ ansible_managed | comment }}
[Unit]
2024-04-14 22:48:46 +00:00
Description=Loki service
After=network.target
2022-08-30 12:48:13 +00:00
[Service]
Type=simple
User={{ loki_user }}
ExecStart={{ loki_bin_path }}/loki \
-config.file {{ loki_config_path }}
2024-04-14 22:48:46 +00:00
WorkingDirectory={{ loki_var_path }}
TimeoutSec = 120
Restart = on-failure
RestartSec = 2
2022-08-30 12:48:13 +00:00
[Install]
2024-04-14 22:48:46 +00:00
WantedBy=multi-user.target