2010-11-23 18:14:19 +00:00
|
|
|
$OpenBSD: README,v 1.2 2010/11/23 18:14:19 jasper Exp $
|
2010-07-08 16:18:06 +00:00
|
|
|
|
2010-11-23 18:14:19 +00:00
|
|
|
Running pgbouncer on OpenBSD
|
|
|
|
============================
|
2010-07-08 16:18:06 +00:00
|
|
|
|
2010-11-23 18:14:19 +00:00
|
|
|
Post-installation steps:
|
|
|
|
------------------------
|
|
|
|
1. Carefully edit ${SYSCONFDIR}/pgbouncer/pgbouncer.ini and
|
|
|
|
${SYSCONFDIR}/pgbouncer/userlist.txt to fit your needs.
|
2010-07-08 16:18:06 +00:00
|
|
|
|
2010-11-23 18:14:19 +00:00
|
|
|
2. Launch pgbouncer in foreground mode to see if everything
|
2010-07-08 16:18:06 +00:00
|
|
|
is ok:
|
|
|
|
|
|
|
|
# install -d -o _pgbouncer /var/run/pgbouncer
|
2010-07-08 16:23:54 +00:00
|
|
|
# pgbouncer -u _pgbouncer ${SYSCONFDIR}/pgbouncer/pgbouncer.ini
|
2010-07-08 16:18:06 +00:00
|
|
|
|
2010-11-23 18:14:19 +00:00
|
|
|
3. Add the following to your /etc/rc.local:
|
2010-07-08 16:18:06 +00:00
|
|
|
|
|
|
|
if [ -x ${TRUEPREFIX}/bin/pgbouncer ]; then
|
|
|
|
echo -n 'pgbouncer'
|
|
|
|
install -d -o _pgbouncer /var/run/pgbouncer
|
|
|
|
${TRUEPREFIX}/bin/pgbouncer -d -u _pgbouncer \
|
2010-07-08 16:23:54 +00:00
|
|
|
${SYSCONFDIR}/pgbouncer/pgbouncer.ini
|
2010-07-08 16:18:06 +00:00
|
|
|
fi
|
|
|
|
|
2010-11-23 18:14:19 +00:00
|
|
|
Random hints:
|
|
|
|
-------------
|
|
|
|
Check /var/log/pgbouncer/pgbouncer.log if something goes wrong.
|