2023-09-14 16:51:15 +02:00
|
|
|
{%- 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
|
2023-12-06 04:10:43 +01:00
|
|
|
ExecStartPre=/usr/local/bin/vector validate
|
|
|
|
ExecStart=/usr/local/bin/vector
|
|
|
|
ExecReload=/usr/local/bin/vector validate
|
2023-09-14 16:51:15 +02:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
Restart=always
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
EnvironmentFile=-/etc/default/vector
|
|
|
|
StartLimitInterval=10
|
|
|
|
StartLimitBurst=5
|
2023-12-06 04:10:43 +01:00
|
|
|
|
2023-09-14 16:51:15 +02:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|