Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340951 - postgresql-server-9.0 ebuild doesn't create /var/run/postgresql
Summary: postgresql-server-9.0 ebuild doesn't create /var/run/postgresql
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-14 11:06 UTC by James Dominy
Modified: 2010-10-17 08:00 UTC (History)
0 users

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


Attachments
My emerge --info (emerge.info,5.06 KB, text/plain)
2010-10-14 11:07 UTC, James Dominy
Details

Note You need to log in before you can comment on or make changes to this bug.
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