Fix typos in Promtail systemd unit
This commit is contained in:
parent
4e338917dc
commit
7168a89e53
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user