Fix typos in Promtail systemd unit

This commit is contained in:
Ryan Cavicchioni 2024-04-14 17:45:59 -05:00
parent 4e338917dc
commit 7168a89e53

View File

@ -1,19 +1,19 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
[Unit] [Unit]
Description=Loki Description=Promtail service
After=network-online.target After=network.target
[Service] [Service]
Type=simple Type=simple
User={{ promtail_user }} User={{ promtail_user }}
Group={{ promtail_group }}
ExecStart={{ promtail_bin_path }}/promtail \ ExecStart={{ promtail_bin_path }}/promtail \
-config.file {{ promtail_config_path }} -config.file {{ promtail_config_path }} \
-client.external-labels=host=%l
WorkingDirectory={{ promtail_var_path }} WorkingDirectory={{ promtail_var_path }}
TimeoutSec = 60
Restart=always Restart=on-failure
RestartSec=1 RestartSec=2
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target