Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 360691

Summary: dev-db/postgresql-server-9.0.3-r2: DATA_DIR variable not set in /etc/init.d/postgresql-9.0
Product: Gentoo Linux Reporter: Dennis Ryan <dennisr>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.