Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360691 - dev-db/postgresql-server-9.0.3-r2: DATA_DIR variable not set in /etc/init.d/postgresql-9.0
Summary: dev-db/postgresql-server-9.0.3-r2: DATA_DIR variable not set in /etc/init.d/p...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-27 03:49 UTC by Dennis Ryan
Modified: 2011-03-27 11:30 UTC (History)
0 users

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 Dennis Ryan 2011-03-27 03:49:08 UTC
DATA_DIR is not set in init.d script therefore postgresql will not start. Is DATA_DIR a redundant variable? PGDATA var contains the same information.

localhost # /etc/init.d/postgresql-9.0 start
 * Caching service dependencies ...                                                                                                                             [ ok ]
 * Starting PostgreSQL ...
postgres cannot access the server configuration file "/var/lib/postgresql/ /var/lib/postgresql/9.0/data --data-directory= --silent-mode=true -N 512 -B 1024 -i /postgresql.conf": No such file or directory 

Reproducible: Always

Steps to Reproduce:
1. upgrade to dev-db/postgresql-server-9.0.3-r2 from dev-db/postgresql-server-9.0.3
2. 
3.
Comment 1 Aaron W. Swenson gentoo-dev 2011-03-27 11:30:23 UTC
No, it isn't a redundant variable, though PGDATA and DATA_DIR may be set to the same location. 9.0.3-r3 includes a check for an empty DATA_DIR.