From 110f8ae8bcac6a37550c1af1a7d27c1261370bbc Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 7 Sep 2020 23:17:33 +0900 Subject: [PATCH] `systemd` config for `prmtail` nginx. --- .../files/lib/systemd/system/promtail-nginx.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cookbooks/nginx/files/lib/systemd/system/promtail-nginx.service diff --git a/cookbooks/nginx/files/lib/systemd/system/promtail-nginx.service b/cookbooks/nginx/files/lib/systemd/system/promtail-nginx.service new file mode 100644 index 0000000..dc8c2b6 --- /dev/null +++ b/cookbooks/nginx/files/lib/systemd/system/promtail-nginx.service @@ -0,0 +1,12 @@ +[Unit] +Description=Grafana Promtail (nginx) +Documentation=https://github.com/grafana/loki +After=network-online.target + +[Service] +User=root +Restart=always +ExecStart=/usr/local/bin/promtail --config.file=/etc/promtail/nginx.yaml + +[Install] +WantedBy=multi-user.target