diff options
author | johnjay <johnjay@localhost> | 2006-08-14 18:54:57 +0000 |
---|---|---|
committer | johnjay <johnjay@localhost> | 2006-08-14 18:54:57 +0000 |
commit | 4f83b43f4ceb4dd686a485b2f2821b93d1303232 (patch) | |
tree | ac182e27558098d0d1d6c4fcc659e926901fae44 /dev-db/slony1/files | |
parent | dev-db/pgadmin3: Patching out --debug=yes/no specification for wx_config whic... (diff) | |
download | testing-4f83b43f4ceb4dd686a485b2f2821b93d1303232.tar.gz testing-4f83b43f4ceb4dd686a485b2f2821b93d1303232.tar.bz2 testing-4f83b43f4ceb4dd686a485b2f2821b93d1303232.zip |
dev-db/slony1: Adding slony1 1.2.0 RC3
svn path=/testing/; revision=78
Diffstat (limited to 'dev-db/slony1/files')
-rw-r--r-- | dev-db/slony1/files/digest-slony1-1.2.0_rc3 | 3 | ||||
-rw-r--r-- | dev-db/slony1/files/slony1.conf | 11 | ||||
-rwxr-xr-x | dev-db/slony1/files/slony1.init | 37 |
3 files changed, 51 insertions, 0 deletions
diff --git a/dev-db/slony1/files/digest-slony1-1.2.0_rc3 b/dev-db/slony1/files/digest-slony1-1.2.0_rc3 new file mode 100644 index 0000000..44e5486 --- /dev/null +++ b/dev-db/slony1/files/digest-slony1-1.2.0_rc3 @@ -0,0 +1,3 @@ +MD5 92a26e2c4b9122135a81bb34dd31ece4 slony1-1.2.0_rc3.tar.bz2 782067 +RMD160 d0e0f15f48e2ff7bd54253c9f6e68913b3948860 slony1-1.2.0_rc3.tar.bz2 782067 +SHA256 36b3468609f1cb43eec0081acc573ce33d00e642f264ae97dde75d703d15e8c7 slony1-1.2.0_rc3.tar.bz2 782067 diff --git a/dev-db/slony1/files/slony1.conf b/dev-db/slony1/files/slony1.conf new file mode 100644 index 0000000..8c82b1c --- /dev/null +++ b/dev-db/slony1/files/slony1.conf @@ -0,0 +1,11 @@ +# /etc/conf.d/slony1: +# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/files/slony1.conf,v 1.1 2005/05/11 21:34:23 nakano Exp $ + +# Configuration file for /etc/init.d/slony1 + +USER=postgres +DBUSER=postgres +CLUSTER=your_cluster_name +DBNAME=your_database_name +LOGFILE=/var/lib/postgresql/data/slony1.log +LOGLEVEL=1 # 1(minimum)..4(maximum) diff --git a/dev-db/slony1/files/slony1.init b/dev-db/slony1/files/slony1.init new file mode 100755 index 0000000..b6bb3d3 --- /dev/null +++ b/dev-db/slony1/files/slony1.init @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/files/slony1.init,v 1.1 2005/05/11 21:34:23 nakano Exp $ + +depend() { + need postgresql +} + +start() { + ebegin "Starting slony1" + /usr/bin/slon -p /var/run/slony1.pid -d $LOGLEVEL $CLUSTER "dbname=$DBNAME user=$DBUSER" >> $LOGFILE 2>&1 & + + while : + do + cnt=$(($cnt + 1)) + if [ -f "/var/run/slony1.pid" ]; then + ret=0 + break + fi + + if [ $cnt -eq 30 ]; then + eerror "Please see log file: $LOGFILE" + ret=1 + break + fi + sleep 1 + done + eend $ret +} + +stop() { + ebegin "Stopping slony1" + kill `cat /var/run/slony1.pid` + eend $? +} + |