#!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { use net } start() { ebegin "Starting PGCluster Replication Server" if [ -f /var/lib/pgcluster/8.0/pgreplicate.pid ]; then rm /var/lib/pgcluster/8.0/pgreplicate.pid fi su - $PGUSER -c "/usr/lib/pgcluster-8.0/bin/pgreplicate -W /var/lib/pgcluster/8.0 -D /etc/pgcluster-8.0" eend $? } stop() { ebegin "Stopping PGCluster Replication Server" su - $PGUSER -c "/usr/lib/pgcluster-8.0/bin/pgreplicate -W /var/lib/pgcluster/8.0 -D /etc/pgcluster-8.0 stop" eend $? }