1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/blackbox_exporter/blackbox_exporter.initd

16 lines
492 B
Text

#!/sbin/openrc-run
name="blackbox_exporter"
description="blackbox exporter for the prometheus monitoring system"
supervisor=supervise-daemon
command=/usr/bin/blackbox_exporter
command_args="--config.file=$blackbox_exporter_config_file \
$blackbox_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
}