1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-14 03:39:53 +03:00
aports/community/prometheus-bind-exporter/bind-exporter.initd

15 lines
428 B
Bash

#!/sbin/openrc-run
name="bind_exporter"
description="bind exporter for the prometheus monitoring system"
supervisor=supervise-daemon
command=/usr/bin/bind_exporter
command_args="$bind_exporter_args"
command_user="prometheus:prometheus"
start_pre() {
[ -n "$output_log" ] && checkpath -f "$output_log" \
-m 644 -o prometheus:prometheus
[ -n "$error_log" ] && checkpath -f "$error_log" \
-m 644 -o prometheus:prometheus
}