paulbsd-salt/states/vector/templates/vector.service.j2
2023-12-06 16:10:44 +01:00

24 lines
666 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/local/bin/vector validate
ExecStart=/usr/local/bin/vector
ExecReload=/usr/local/bin/vector validate
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
AmbientCapabilities=CAP_NET_BIND_SERVICE
EnvironmentFile=-/etc/default/vector
StartLimitInterval=10
StartLimitBurst=5
[Install]
WantedBy=multi-user.target