#!/bin/ksh
#
# $OpenBSD: pgbouncer.rc,v 1.4 2018/01/11 19:27:01 rpe Exp $

daemon="${TRUEPREFIX}/bin/pgbouncer -d"
daemon_flags="-q -u _pgbouncer ${SYSCONFDIR}/pgbouncer/pgbouncer.ini"

. /etc/rc.d/rc.subr

rc_pre() {
	/usr/bin/install -d -o _pgbouncer /var/run/pgbouncer
}

rc_cmd $1
