LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-15-2004, 05:32 PM   #1
aa2bi
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
Starting up a service (Postgres) on boot


Hi there.

I'm using Mandrake 8.0, and lately I installed postgresql 7.4.2, cause the version mandrake had was 7.2.2.

Everything works fine, I run psql normally. I'm using another program, RQL to query RDF that are stored in postgres. That works too.

The problem came up when I tried to use a Java API to do that work inside a java program. I get error messages which say that I can't connect to the database.

I'm not sure that this is the reason, but here's what I found out. First, by upgrading to postgres 7.4.2, the service doesn't start up with the operating system. So, I have to do this:

su
su - postgres
postmaster ..........

every time, to start up the service. So far so good, cause everything works after that, except from the Java API.

I checked in Mandrake Control Center the services, and even after I start up postgres manually, it says that postgres isn't running. Not only this, but it's set to start on boot (which it doesn't) and the buttons 'START' and 'STOP' do nothing. They always print error messages like: "Couldn't start service" or "Couldn't stop service", no matter if I have started it manually, or stopped it.

Now, since everything in installing postgres went fine, and RQL installation fine too, I suppose that the API failure has something to do with that. It doesn't recognize that postgres is running (Don't know why). I get that feeling, cause I get the same exception messages, no matter if postgres is up (manually by me) or down.

Oh, I should say that before I upgraded to postgres 7.4.2, the previous version did start up on boot.

How can I make postgres start up on boot? And I hope that this is the reason why the link to the database doesn't work.

Thank you for your time,
Tony
 
Old 06-15-2004, 05:34 PM   #2
aa2bi
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry, my mistyping. I'm using mandrake 9.0, not 8.0
 
  


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
Starting a Service at Boot as a Different user Butterbroetchen Linux - Security 2 05-16-2005 07:05 PM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
starting a service at boot time fallen26 General 5 07-31-2004 12:21 PM
starting postgres 7.2.2 lolmc Linux - Software 4 02-26-2003 03:30 PM
Starting apache and mysql as service on boot :: buddy Linux - General 2 12-30-2002 02:51 PM

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

All times are GMT -5. The time now is 12:06 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