Deploy `/etc/systemd/systemd/vector-prometheus.service`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-12 19:26:48 +09:00
parent 72a89595e7
commit f4d181bca8
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
[Unit]
Description=Vector
Documentation=https://vector.dev
After=network-online.target
Requires=network-online.target
[Service]
ExecStart=/usr/bin/vector --config /etc/vector/prometheus.toml
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=vector
[Install]
WantedBy=multi-user.target