summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/pgcluster/files/pgreplicate.init-1.3.0c')
-rwxr-xr-xdev-db/pgcluster/files/pgreplicate.init-1.3.0c23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-db/pgcluster/files/pgreplicate.init-1.3.0c b/dev-db/pgcluster/files/pgreplicate.init-1.3.0c
new file mode 100755
index 000000000000..a9fc4df04a0b
--- /dev/null
+++ b/dev-db/pgcluster/files/pgreplicate.init-1.3.0c
@@ -0,0 +1,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 $?
+}