mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2025-07-04 09:00
This commit is contained in:
21
roles/vector/templates/vector.service.j2
Normal file
21
roles/vector/templates/vector.service.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Vector
|
||||
Documentation=https://vector.dev
|
||||
After=network-online.target
|
||||
Requires=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/bin/vector --config /etc/vector/vector.yaml --config-dir /etc/vector/conf.d validate
|
||||
ExecStart=/usr/bin/vector --config /etc/vector/vector.yaml --config-dir /etc/vector/conf.d --watch-config
|
||||
ExecReload=/usr/bin/vector --config /etc/vector/vector.yaml --config-dir /etc/vector/conf.d validate --no-environment
|
||||
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
|
2
roles/vector/templates/vector.yml
Normal file
2
roles/vector/templates/vector.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
{{ vector_conf | to_nice_yaml(indent=2) }}
|
Reference in New Issue
Block a user