18 lines
348 B
Plaintext
18 lines
348 B
Plaintext
#!/sbin/openrc-run
|
|
supervisor=supervise-daemon
|
|
|
|
command="/usr/bin/postgres_exporter"
|
|
command_background="yes"
|
|
command_user="postgres:prometheus"
|
|
|
|
pidfile="/var/run/${SVCNAME}.pid"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
start_pre() {
|
|
export DATA_SOURCE_NAME="postgresql:///postgres?host=/run/postgresql&port=7550&sslmode=disable&user=postgres"
|
|
}
|