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

Bug 340951

Summary: postgresql-server-9.0 ebuild doesn't create /var/run/postgresql
Product: Gentoo Linux Reporter: James Dominy <jgdominy>
Component: New packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: My emerge --info

Description James Dominy 2010-10-14 11:06:24 UTC
After emerging and configuring postgresql-server-9.0, trying to start it with /etc/init.d/postgesql-9.0 start fails.

/var/lib/postgresql/9.0/data/postmatser.log shows

FATAL:  could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": No such file or directory

I created /var/run/postgresql manually and changed ownership to postgres:postgres and now it starts without issues. Presumably this should have been done during the installation or the config

Reproducible: Always

Steps to Reproduce:
1. emerge postgresql-server-9.0
2. emerge --config postgresql-server
3. /etc/init.d/postgresql-9.0 start

Actual Results:  
postgresql fails to start

Expected Results:  
postgresql starts
Comment 1 James Dominy 2010-10-14 11:07:56 UTC
Created attachment 250549 [details]
My emerge --info
Comment 2 Patrick Lauer gentoo-dev 2010-10-17 08:00:59 UTC
postgresql-server-9.0.1.ebuild: keepdir /var/run/postgresql

So the ebuild *should* generate this directory. Always :)

The only way I can think of how this might fail is /var/run being wiped between reboots or something like that - if you can narrow it down why it doesn't work for you please reopen. Until then closing as NEEDINFO