Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 189854
Collapse All | Expand All

(-)/usr/portage/dev-db/postgresql/files/pg_autovacuum.init-8.0 (-2 / +2 lines)
Lines 16-22 Link Here
16
	TOO_LONG=0
16
	TOO_LONG=0
17
	while [ "$CONTINUE" -eq 0 ] && [ $TOO_LONG -lt 20 ]
17
	while [ "$CONTINUE" -eq 0 ] && [ $TOO_LONG -lt 20 ]
18
	do
18
	do
19
		psql -U $PGUSER -d template1 -c "SELECT 1" 1> /dev/null 2> /dev/null
19
		su ${PGUSER} -- -c 'psql -d template1 -c "SELECT 1"' 1> /dev/null 2> /dev/null
20
		if [ "$?" -eq 0 ]
20
		if [ "$?" -eq 0 ]
21
		then
21
		then
22
			CONTINUE=1
22
			CONTINUE=1
Lines 27-33 Link Here
27
		fi
27
		fi
28
	done
28
	done
29
29
30
	start-stop-daemon -o --chuid $PGUSER --start --quiet --exec /usr/bin/pg_autovacuum -- -D ${PGPORT:+-p ${PGPORT}} -v $VACUUM_BASE -V $VACUUM_SCALE -s $SLEEP_BASE -S $SLEEP_SCALE -L $PG_AUTOVACUUM_LOG
30
	start-stop-daemon -o --chuid ${PGUSER} --start --quiet --exec /usr/bin/pg_autovacuum -- -D ${PGPORT:+-p ${PGPORT}} -v ${VACUUM_BASE} -V ${VACUUM_SCALE} -s ${SLEEP_BASE} -S ${SLEEP_SCALE} -L ${PG_AUTOVACUUM_LOG}
31
31
32
	sleep 1
32
	sleep 1
33
	pidof /usr/bin/pg_autovacuum > /dev/null
33
	pidof /usr/bin/pg_autovacuum > /dev/null

Return to bug 189854