Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 293701 Details for
Bug 391851
dev-db/postgresql-server-9.1 : init script does not honour postgresql.conf settings
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
reads postgresql.conf value for port and uses it
portconfig.patch (text/plain), 1.37 KB, created by
Bèrto 'd Sèra
on 2011-11-25 10:57:00 UTC
(
hide
)
Description:
reads postgresql.conf value for port and uses it
Filename:
MIME Type:
Creator:
Bèrto 'd Sèra
Created:
2011-11-25 10:57:00 UTC
Size:
1.37 KB
patch
obsolete
>--- postgresql-9.1.old 2011-11-24 09:44:59.000000000 +0100 >+++ postgresql-9.1 2011-11-25 11:41:04.000000000 +0100 >@@ -11,6 +11,22 @@ > provide postgresql-9.1 > } > >+readconf() { >+ while read -r B C D E; do >+ if [ "${B:0:1}" != "#" ] && [ "$B" == "$2" ] ; then >+ if [ "$C" == "=" ] ; then >+ # the optional = operator has been used, choose $D >+ VALUE="$D" >+ return 0 >+ else >+ VALUE="$C" >+ return 0 >+ fi >+ fi >+ done < "$PGDATA/$1" >+ VALUE=${PGPORT} >+} >+ > checkconfig() { > if [ -z ${DATA_DIR} ] ; then > eerror "DATA_DIR not set" >@@ -48,11 +64,12 @@ > eerror "HINT: Try: 'chmod 644 ${PGDATA}/*.conf'" > return 1 > fi >- if [ -e /var/run/postgresql/.s.PGSQL.${PGPORT} ] ; then >+ readconf "postgresql.conf" "port"; >+ if [ -e /var/run/postgresql/.s.PGSQL.${VALUE} ] ; then > eerror "Socket conflict." > eerror "A server is already listening on:" >- eerror " /var/run/postgresql/.s.PGSQL.${PGPORT}" >- eerror "HINT: Change PGPORT to listen on a different socket." >+ eerror " /var/run/postgresql/.s.PGSQL.${VALUE}" >+ eerror "HINT: Configure the port to another value in postgresql.conf." > return 1 > fi > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 391851
: 293701