aboutsummaryrefslogtreecommitdiff
path: root/templates/prometheus.runit
diff options
context:
space:
mode:
Diffstat (limited to 'templates/prometheus.runit')
-rw-r--r--templates/prometheus.runit5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/prometheus.runit b/templates/prometheus.runit
new file mode 100644
index 0000000..b14e2d1
--- /dev/null
+++ b/templates/prometheus.runit
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec chpst -u {{prometheus_user}} \
+ {{prometheus_home_dir}}/prometheus/prometheus \
+ {{prometheus_opts | replace('\n', ' ')}} \
+ > {{prometheus_log}} 2>&1