Problem starting postgres server at boot time

Posted on 2003-03-24
Medium Priority
Last Modified: 2013-12-15
I've just installed redhat 8.0 together with postgres.
problem if I enable the service postgres at start time
I'm not able to connect to the datbase

If I start it manually with:
postmaster -i -D /var/lib/pgsql

then everything works fine, I can connect to the database

I took a look at the start-script in init.d I saw that with pg_ctl .. the -i option was missing
I added it, but still no changes,
any help is appreciated
Question by:wbk
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

-jer- earned 400 total points
ID: 8210911
it depends on which runlevel your machine starts in (level 3 for text, level 5 for graphical)... make sure a link to the startup file is in the appropriate place for the mode you start the machine in...  check for links in the rcX.d directories.  If they're not, try this:
(postgresql is what I call to start/stop postgres on my server)

ln -s /etc/rc.d/init.d/postgresql /etc/rc.d/rc3.d/S85postgresql
ln -s /etc/rc.d/init.d/postgresql /etc/rc.d/rc5.d/S85postgresql
ln -s /etc/rc.d/init.d/postgresql /etc/rc.d/rc6.d/K15postgresql
ln -s /etc/rc.d/init.d/postgresql /etc/rc.d/rc0.d/K15postgresql

Expert Comment

ID: 9076594
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question