1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/testing/prometheus-postgres-exporter/postgres-exporter.initd
2022-03-08 00:37:25 +00:00

21 lines
415 B
Bash
Executable file

#!/sbin/openrc-run
supervisor=supervise-daemon
command="/usr/bin/postgres_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 $user:$group -m755 $logdir
checkpath -f -o $user:$group -m644 $error_log
}