1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-18 06:46:08 +03:00
aports/testing/prometheus-json-exporter/json-exporter.initd
Alex Denes dfc04d7d24 testing/prometheus-json-exporter: new aport
https://github.com/prometheus-community/json_exporter Prometheus exporter which scrapes remote JSON by JSONPath
2022-03-16 14:20:36 +00:00

21 lines
413 B
Bash
Executable file

#!/sbin/openrc-run
supervisor=supervise-daemon
command="/usr/bin/json_exporter"
command_args="$ARGS"
command_background="yes"
command_user="prometheus:prometheus"
logdir="/var/log/prometheus"
error_log="$logdir/${SVCNAME}.log"
pidfile="/var/run/${SVCNAME}.pid"
depend() {
need net
after firewall
}
start_pre() {
checkpath -d -o $command_user -m755 $logdir
checkpath -f -o $command_user -m644 $error_log
}