Re: ubuntu 9.04 and auto-start

From: John Cheng <jlcheng(at)ymail(dot)com>
To: johnf <jfabiani(at)yolo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ubuntu 9.04 and auto-start
Date: 2009-06-02 23:22:51
Message-ID: 100927.42551.qm@web43412.mail.sp1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


The same way you add any other service in Ubuntu :)

To add a service, use

update-rc.d <servicename> defaults

In your case, it sounds like your servicename is postgresql, so you'd have

update-rc.d postgresql defaults

Try this URL:

http://ubuntu.wordpress.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup/

----- Original Message -----
From: "johnf" <jfabiani(at)yolo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Sent: Thursday, May 28, 2009 6:25:22 AM GMT -08:00 US/Canada Pacific
Subject: [GENERAL] ubuntu 9.04 and auto-start

Hi,
I have installed postgres 8.3 and it runs if I manually start postgres. That
is to say I '/etc/init.d/postgresql start' as root. Runs perfectly.

But if I restart the computer postgres does not auto-start. I've done a
little research but did not see anything that jumped off the page to tell me
how to get postgres to auto-start. On openSUSE there is a utility under YAST
that allows the user to check postgres to auto-start. I can't find the same
in Ubuntu 9.04.

So how do I auto-start Postgres on Ubuntu 9.04?
--
John Fabiani

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brent Wood 2009-06-02 23:34:44 Re: Change view definition - do not have to drop it
Previous Message Tom Lane 2009-06-02 22:42:49 Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role