openbsd-ports/databases/pgpool/pkg/pgpool.rc
pea 17bbcb18de pgpool-II is a middleware that sits between PostgreSQL servers and a
PostgreSQL database client. It provides the following features:

+ Connection Pooling
+ Replication
+ Load Balance
+ Limiting Exceeding Connections
+ Parallel Query

with tweaks from ajacoutot@, thanks.

ok ajacoutot@
2011-12-21 15:51:04 +00:00

23 lines
319 B
Bash

#!/bin/sh
#
# $OpenBSD: pgpool.rc,v 1.1.1.1 2011/12/21 15:51:04 pea Exp $
daemon="${TRUEPREFIX}/bin/pgpool"
daemon_user="_pgpool"
. /etc/rc.d/rc.subr
rc_pre() {
/usr/bin/install -d -o _pgpool /var/run/pgpool
}
rc_stop() {
${daemon} -m s stop || ${daemon} -m f stop
}
rc_reload() {
${daemon} reload
}
rc_cmd $1