openbsd-ports/databases/pgbouncer/pkg
2010-11-23 18:14:19 +00:00
..
DESCR Remove trailing blank lines from DESCR. 2010-07-08 16:23:54 +00:00
PLIST meh, regen PLIST might help 2010-11-08 17:28:10 +00:00
README style 2010-11-23 18:14:19 +00:00

$OpenBSD: README,v 1.2 2010/11/23 18:14:19 jasper Exp $

Running pgbouncer on OpenBSD
============================

Post-installation steps:
------------------------
1. Carefully edit ${SYSCONFDIR}/pgbouncer/pgbouncer.ini and 
   ${SYSCONFDIR}/pgbouncer/userlist.txt to fit your needs.

2. Launch pgbouncer in foreground mode to see if everything 
   is ok:

   # install -d -o _pgbouncer /var/run/pgbouncer
   # pgbouncer -u _pgbouncer ${SYSCONFDIR}/pgbouncer/pgbouncer.ini

3. Add the following to your /etc/rc.local:

   if [ -x ${TRUEPREFIX}/bin/pgbouncer ]; then
	echo -n 'pgbouncer'
	install -d -o _pgbouncer /var/run/pgbouncer
	${TRUEPREFIX}/bin/pgbouncer -d -u _pgbouncer \
		${SYSCONFDIR}/pgbouncer/pgbouncer.ini
   fi

Random hints:
-------------
Check /var/log/pgbouncer/pgbouncer.log if something goes wrong.