aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/services/custom-units/loki.service
diff options
context:
space:
mode:
Diffstat (limited to 'straper/db/public/services/custom-units/loki.service')
-rw-r--r--straper/db/public/services/custom-units/loki.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/straper/db/public/services/custom-units/loki.service b/straper/db/public/services/custom-units/loki.service
new file mode 100644
index 0000000..2885fac
--- /dev/null
+++ b/straper/db/public/services/custom-units/loki.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Loki service
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+User=loki
+ExecStart=/usr/bin/loki -config.file /etc/loki/config.yml
+# Give a reasonable amount of time for the server to start up/shut down
+TimeoutSec = 120
+Restart = on-failure
+RestartSec = 2
+
+[Install]
+WantedBy=multi-user.target