Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342727 - Postgresql 8.4.5 Init script/Conf script combination is faulty
Summary: Postgresql 8.4.5 Init script/Conf script combination is faulty
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-26 09:03 UTC by Adam Jorgensen
Modified: 2010-10-26 09:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Jorgensen 2010-10-26 09:03:44 UTC
It seems that the init.d and conf.d scripts for 8.4.5 have a slight issue.

Line 136 of the init.d script is as follows:

 -c "env PGDATA=\"${PGDATA}\" PGPORT=\"${PGPORT}\" ${PG_EXTRA_ENV} /usr/lib/postgresql-8.4/bin/pg_ctl start ${WAIT_FOR_START} -t ${START_TIMEOUT} -s -o '--silent-mode=true ${PGOPTS}'"

However, in the conf.d script the PGPORT variable is broken as tt is commented out. This causes PGPORT to be set to "" which then overrides the setting in the postgresql.conf file and causes the server to fail to start with the message:


FATAL:  invalid value for parameter "port": ""


Reproducible: Always

Steps to Reproduce:
1. Start postgresql using the init.d script

Actual Results:  
/etc/init.d/postgresql-8.4 start
 * Caching service dependencies ...                                                                                                                                                         [ ok ]
 * Starting PostgreSQL ...
FATAL:  invalid value for parameter "port": ""

could not start server                                                                                                                                                                      [ !! ]
 * ERROR: postgresql-8.4 failed to start


Expected Results:  
/etc/init.d/postgresql-8.4 start
 * Caching service dependencies ...                                                                                                                                                         [ ok ]
 * Starting PostgreSQL ...      

I am running Sabayon but the mantainers told me to file the bug with gentoo.
Comment 1 Joost Ruis 2010-10-26 09:29:35 UTC
Have to mark it invalid, sorry for the noise.

The conf.d file we ship does not have PGPORT commented out in the conf.d file.
This has to be some user error.