summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/postgresql-client/files/pg_autovacuum.init-8.0')
-rw-r--r--dev-db/postgresql-client/files/pg_autovacuum.init-8.054
1 files changed, 0 insertions, 54 deletions
diff --git a/dev-db/postgresql-client/files/pg_autovacuum.init-8.0 b/dev-db/postgresql-client/files/pg_autovacuum.init-8.0
deleted file mode 100644
index a3b6ffe..0000000
--- a/dev-db/postgresql-client/files/pg_autovacuum.init-8.0
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-depend() {
- use postgresql-8.0
- need logger
-}
-
-start() {
- ebegin "Starting pg_autovacuum"
-
- echo
- echo -n "Waiting max. 20 sec. for PostgreSQL to start "
- CONTINUE=0
- TOO_LONG=0
- while [ "$CONTINUE" -eq 0 ] && [ $TOO_LONG -lt 20 ]
- do
- psql -U $PGUSER -d template1 -c "SELECT 1" 1> /dev/null 2> /dev/null
- if [ "$?" -eq 0 ]
- then
- CONTINUE=1
- else
- echo -n "."
- TOO_LONG=`expr $TOO_LONG + 1`
- sleep 1
- fi
- done
-
- start-stop-daemon -o --chuid $PGUSER --start --quiet --exec /usr/lib/postgresql-8.0/bin/pg_autovacuum -- -D -v $VACUUM_BASE -V $VACUUM_SCALE -s $SLEEP_BASE -S $SLEEP_SCALE -L $PG_AUTOVACUUM_LOG $PG_AUTOVACUUM_OPTS
-
- sleep 1
- pidof /usr/lib/postgresql-8.0/bin/pg_autovacuum > /dev/null
- if [ $? -eq 0 ] ; then
- eend 0
- else
- eerror
- eerror "Please check the $PG_AUTOVACUUM_LOG log file for errors."
- eerror "You may need to add the following lines to /var/lib/postgresql/data/postgresql.conf and restart PostgreSQL."
- eerror " stats_start_collector = true"
- eerror " stats_row_level = true"
- eerror
- eerror "Please read ___DOCDIR___/contrib/README.pg_autovacuum for details!"
- eerror
- eend 1
- fi
-}
-
-stop() {
- ebegin "Stopping pg_autovacuum"
- start-stop-daemon --stop --quiet --exec /usr/lib/postgresql-8.0/bin/pg_autovacuum
- eend $?
-}