paulbsd-salt/states/vector/templates/vector.service.j2
Paul 9a02f2b4b6
All checks were successful
continuous-integration/drone/push Build is passing
updated vector state
2024-11-23 07:37:03 +01:00

25 lines
694 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
ExecStop=/bin/kill $MAINPID
Restart=always
AmbientCapabilities=CAP_NET_BIND_SERVICE
EnvironmentFile=-/etc/default/vector
StartLimitInterval=10
StartLimitBurst=5
[Install]
WantedBy=multi-user.target