#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 OPTS="-f /etc/pgpool-II/pgpool.conf -a /etc/pgpool-II/pool_hba.conf -F /etc/pgpool-II/pcp.conf" depend() { need net } start() { ebegin "Starting pgpool-II" start-stop-daemon --start --quiet --background --exec /usr/bin/pgpool -- $OPTS -n > /var/log/pgpool/pgpool.log 2>&1 result=$? eend $result } stop() { ebegin "Stopping pgpool-II" start-stop-daemon --stop --quiet --exec /usr/bin/pgpool result=$? eend $result }