17bbcb18de
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@
23 lines
319 B
Bash
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
|