mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
https://github.com/prometheus-community/ipmi_exporter Remote IPMI exporter for Prometheus
21 lines
413 B
Bash
Executable file
21 lines
413 B
Bash
Executable file
#!/sbin/openrc-run
|
|
supervisor=supervise-daemon
|
|
|
|
command="/usr/bin/ipmi_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
|
|
}
|