LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 01: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, 02:19 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,633
Blog Entries: 29

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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 TheIndependentAquarius; 01-06-2010 at 02:43 AM.
 
Old 01-07-2010, 02: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, 03:01 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,633
Blog Entries: 29

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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 TheIndependentAquarius; 01-07-2010 at 03:02 AM.
 
Old 01-07-2010, 04: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, 04:36 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,633
Blog Entries: 29

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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 TheIndependentAquarius; 01-07-2010 at 04:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:20 PM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 02:59 PM
Starting postgresql service: [FAILED] HeyAZ Fedora 1 08-21-2006 10:30 PM
start/stop service on the fly zchoyt Linux - Software 3 04-14-2005 04:30 AM
service squid.init stop says [failed] Niceman2005 Linux - Software 2 11-16-2004 07:20 PM


All times are GMT -5. The time now is 10:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration