diff options
Diffstat (limited to 'dev-db/pgcluster/files/pglb.init-1.3.0c')
-rwxr-xr-x | dev-db/pgcluster/files/pglb.init-1.3.0c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-db/pgcluster/files/pglb.init-1.3.0c b/dev-db/pgcluster/files/pglb.init-1.3.0c new file mode 100755 index 000000000000..0aadc3f8d2da --- /dev/null +++ b/dev-db/pgcluster/files/pglb.init-1.3.0c @@ -0,0 +1,20 @@ +#!/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/pglb.init-1.3.0c,v 1.1 2005/05/10 06:40:37 nakano Exp $ + +depend() { + use net pgreplicate pgcluster +} + +start() { + ebegin "Starting PGCluster Load Balance" + su - $PGUSER -c "/usr/bin/pglb -D /etc/pgcluster" + +} + +stop() { + ebegin "Stopping PGCluster Load Balance" + su - $PGUSER -c "/usr/bin/pglb -D /etc/pgcluster stop" + eend $? +} |