Add vector-loki.service

This commit is contained in:
Kazuhiro MUSASHI 2024-04-03 14:40:30 +09:00
parent ec63d10371
commit 66a32f6d54
1 changed files with 16 additions and 0 deletions

View File

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