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