From d6c76791b6dbd98847e9b96d7b78bccf21281f69 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 12 Oct 2020 17:00:38 +0900 Subject: [PATCH] Deploy `systemd` config for `Loki`. --- cookbooks/loki/files/etc/systemd/system/loki.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cookbooks/loki/files/etc/systemd/system/loki.service diff --git a/cookbooks/loki/files/etc/systemd/system/loki.service b/cookbooks/loki/files/etc/systemd/system/loki.service new file mode 100644 index 0000000..75b3373 --- /dev/null +++ b/cookbooks/loki/files/etc/systemd/system/loki.service @@ -0,0 +1,12 @@ +[Unit] +Description=Grafana Loki +Documentation=https://github.com/grafana/loki +After=network-online.target + +[Service] +User=root +Restart=always +ExecStart=/usr/local/bin/loki --config.file=/etc/loki/loki-config.yml + +[Install] +WantedBy=multi-user.target