#!/sbin/openrc-run
command="/usr/bin/ceph_exporter"
command_background=true
command_user="prometheus:prometheus"

logdir="/var/log/prometheus"
error_log="$logdir/${SVCNAME}.log"
pidfile="/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
}
