diff --git a/cookbooks/loki/files/lib/systemd/system/vector-loki.service b/cookbooks/loki/files/lib/systemd/system/vector-loki.service new file mode 100644 index 0000000..4abbc57 --- /dev/null +++ b/cookbooks/loki/files/lib/systemd/system/vector-loki.service @@ -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