Thread: ubuntu 9.04 and auto-start

ubuntu 9.04 and auto-start

From
johnf
Date:
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

Re: ubuntu 9.04 and auto-start

From
Scott Marlowe
Date:
update-rc.d

On Thu, May 28, 2009 at 7:25 AM, johnf <jfabiani@yolo.com> wrote:
> 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
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



--
When fascism comes to America, it will be intolerance sold as diversity.

Re: ubuntu 9.04 and auto-start

From
Scott Marlowe
Date:
Also, sysvconfig tools like RH uses are available:

http://www.cyberciti.biz/tips/how-to-controlling-access-to-linux-services.html

Re: ubuntu 9.04 and auto-start

From
johnf
Date:
On Thursday 28 May 2009 07:28:04 am Scott Marlowe wrote:
> update-rc.d
>
> On Thu, May 28, 2009 at 7:25 AM, johnf <jfabiani@yolo.com> wrote:
> > 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
> >
> > --
> > Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> > To make changes to your subscription:
> > http://www.postgresql.org/mailpref/pgsql-general
>
> --
> When fascism comes to America, it will be intolerance sold as diversity.

Thanks - that sounds easy to do.  I'll research what and how it works this
evening.

--
John Fabiani

Re: ubuntu 9.04 and auto-start

From
"Daniel Verite"
Date:
    johnf wrote:

> 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.

Did you install the package named postgresql-8.3?
Because it contains /etc/init.d/postgresql-8.3 (note the version number
in the filename) as shown here:
http://packages.ubuntu.com/jaunty/i386/postgresql-8.3/filelist
and the installation procedure normally sets up the links so that it
starts at boot time.

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage:
http://www.manitou-mail.org

Re: ubuntu 9.04 and auto-start

From
John Cheng
Date:
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@yolo.com>
To: pgsql-general@postgresql.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

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general






Re: ubuntu 9.04 and auto-start

From
Scott Marlowe
Date:
In ubuntu it'll have a version number as well since you can have >1
version installed, so...

update-rc.d postgresql-8.3 defaults

On Tue, Jun 2, 2009 at 5:22 PM, John Cheng <jlcheng@ymail.com> wrote:
>
> 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@yolo.com>
> To: pgsql-general@postgresql.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
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
>
>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



--
When fascism comes to America, it will be intolerance sold as diversity.