25 lines
766 B
Django/Jinja
25 lines
766 B
Django/Jinja
{%- from "vector/map.jinja" import vector with context -%}
|
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
|
[Unit]
|
|
Description=A lightweight, ultra-fast tool for building observability pipelines
|
|
Documentation=https://vector.dev
|
|
After=network-online.target
|
|
Requires=network-online.target
|
|
|
|
[Service]
|
|
User=vector
|
|
Group=vector
|
|
ExecStartPre=/usr/bin/vector validate
|
|
ExecStart=/usr/bin/vector
|
|
ExecReload=/usr/bin/vector validate
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
EnvironmentFile=-/etc/default/vector
|
|
# Since systemd 229, should be in [Unit] but in order to support systemd <229,
|
|
# it is also supported to have it here.
|
|
StartLimitInterval=10
|
|
StartLimitBurst=5
|
|
[Install]
|
|
WantedBy=multi-user.target
|