Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15701 - postgresql-7.3.0 not starting
Summary: postgresql-7.3.0 not starting
Status: RESOLVED DUPLICATE of bug 10367
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-14 11:35 UTC by iAlex
Modified: 2007-09-22 23:11 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 iAlex 2003-02-14 11:35:49 UTC
I merged dev-db/postgresql-7.3 and ran ebuild /usr/portage/dev-
db/postgresql/postgresql-version config. But I can't seem to be able to start 
the server. Running /etc/init.d/postgresql start shows a fail code but no 
error message. Also, there are no logs, the path declared in the conf file 
at /etc/conf.d/postgresql (/var/lib/postgresql/data/postgresql.log) doesn't 
exist (file isn't there) so I've no idea how to retrieve the error message. 

/etc/conf.d/postgresql 

Code: 

# PostgreSQL's Database Directory 
PGDATA=/var/lib/postgresql/data 

# Logfile path: (NOTE: This must be uid/gid owned by the value of $PGUSER!) 
PGLOG=/var/lib/postgresql/data/postgresql.log 

# Run the PostgreSQL user as: 
PGUSER=postgres 

# Extra options to run postmaster with. 
# If you want to enable TCP/IP for PostgreSQL, add -i to the following: 
PGOPTS="-N 1024 -B 2048" 
 


/etc/init.d/postgresql 

Code: 

depend() { 
        need net 
} 

start() { 
        ebegin "Starting postgres" 
        su - $PGUSER -c "/usr/bin/pg_ctl start -D '$PGDATA' -s -l '$PGLOG' -
o '$PGOPTS'" 
        eend $? 
} 

stop () { 
        ebegin "Stopping postgres" 
        su - $PGUSER -c "/usr/bin/pg_ctl stop -D '$PGDATA' -s -m fast" 
        eend $? 
} 

svc_restart () { 
        ebegin "Restarting postgres" 
        su - $PGUSER -c "/usr/bin/pg_ctl restart -D '$PGDATA' -s -m fast -
l '$PGLOG' -o '$PGOPTS'" 
        eend $? 
} 
 


Running the command from the init file above on the command line gives no 
return value but it still doesn't start the server. 

I tried running /usr/bin/pg_ctl status -D '/var/lib/postgresql/data' and it 
tells me the server isn't running but I still don't know why. 

Reproducible: Always
Steps to Reproduce:
1. 
2.
3.
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2003-03-15 11:04:22 UTC
What is shell of postgres user? 
If it is '/bin/false', you should change to '/bin/bash'.
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-07-09 12:50:09 UTC

*** This bug has been marked as a duplicate of 10367 ***