LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2010, 12:09 AM   #1
purohit.mayur
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
postgresql service failed to start or stop


HI I am using RHEL 5.0. I am having problem with postgresql service it is not starting, not stopping, not restarting.
 
Old 01-06-2010, 01:19 AM   #2
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Execute
Code:
ps -el
and try to locate postmaster in the resultant list.

If you don't find it there, then show the command with which u are trying to start postgresql.

Meanwhile look here : http://www.yolinux.com/TUTORIALS/Lin...ostgreSQL.html

Last edited by Aquarius_Girl; 01-06-2010 at 01:43 AM.
 
Old 01-07-2010, 01:47 AM   #3
purohit.mayur
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by purohit.mayur View Post
HI I am using RHEL 5.0. I am having problem with postgresql service it is not starting, not stopping, not restarting.
Hiii
I didn't find the postmaster in that resultant list

i m using following command to restart postgresql
service postgresql restart
or chkconfig postgreql on
 
Old 01-07-2010, 02:01 AM   #4
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Execute the following commands in a sequential order and post their outputs:

initdb --pgdata=/var/lib/pgsql/data

/usr/bin/pg_ctl -D /var/lib/pgsql/data -p /usr/bin/postmaster -l logfile start &

And I guess u didn't read the link I pointed to !

Last edited by Aquarius_Girl; 01-07-2010 at 02:02 AM.
 
Old 01-07-2010, 03:19 AM   #5
purohit.mayur
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anishakaul View Post
Execute the following commands in a sequential order and post their outputs:

initdb --pgdata=/var/lib/pgsql/data

/usr/bin/pg_ctl -D /var/lib/pgsql/data -p /usr/bin/postmaster -l logfile start &

And I guess u didn't read the link I pointed to !

I got the following reply

initdb --pgdata=/var/lib/pgsql/data
reply- bash: initdb --pgdata=/var/lib/pgsql/data : no such file or directory
&

/usr/bin/pg_ctl -D /var/lib/pgsql/data -p /usr/bin/postmaster -l logfile start &
reply- [1] 3521
/usr/bin/pg_ctl -D : no such file or directory
 
Old 01-07-2010, 03:36 AM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
The following link contains the solutions of the problems U are facing on RHEL,

STUDY IT LINE BY LINE


http://www.redhat.com/support/resour...s-install.html

Last edited by Aquarius_Girl; 01-07-2010 at 03:37 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't start/stop Mysql Service dereko Linux - Server 1 06-28-2009 03:20 PM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
Starting postgresql service: [FAILED] HeyAZ Fedora 1 08-21-2006 09:30 PM
start/stop service on the fly zchoyt Linux - Software 3 04-14-2005 03:30 AM
service squid.init stop says [failed] Niceman2005 Linux - Software 2 11-16-2004 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration