summaryrefslogtreecommitdiff
blob: a9fc4df04a0b93d66d02ef00823f5b9368463b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/pgcluster/files/pgreplicate.init-1.3.0c,v 1.1 2005/05/10 06:40:37 nakano Exp $

depend() {
	use net
}

start() {
	ebegin "Starting PGCluster Replication Server"
	if [ -f /var/lib/pgcluster/pgreplicate.pid ]; then
		rm /var/lib/pgcluster/pgreplicate.pid
	fi
	su - $PGUSER -c "/usr/bin/pgreplicate -W /var/lib/pgcluster -D /etc/pgcluster"
	eend $?
}

stop() {
	ebegin "Stopping PGCluster Replication Server"
	su - $PGUSER -c "/usr/bin/pgreplicate -W /var/lib/pgcluster -D /etc/pgcluster stop"
	eend $?
}