Re: autostart postgresql

From: Mike E <mee(at)quidquam(dot)com>
To: PostGresql List <pgsql-general(at)postgresql(dot)org>
Subject: Re: autostart postgresql
Date: 2000-11-02 13:00:51
Message-ID: 20001102050050.C47637@quidquam.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Bob Hartung (rwhart(at)netexpress(dot)net) wrote:
> Partial success!
> I have postgresql started and have "createdb testdb"
> successfully. I am having trouble with autostarting
> postmaster in RH6.2 however.
>
> I have copied the file
> "/usr/local/postgresql-7.0.2.......postgres-init" to
> /etc/rc.d/init.d and made a softe link to it from .../rc5.d
> as follows ln /etc/rc.d/init.d/postgres.init
> /etc/rc.d/rc5.d/S98postgres.init
>
> postmaster does not autostart upon a reboot. Do I have to
> use a start command or other paramater to tell postgres.init
> to start the postmaster up? I am not good at reading and
> deciphering these scripts but would like postgres to
> autostart everytime the PC boots to runlevel 5.

You can't run postmaster as root, so to do this I believe you
have to write a wrapper script and give it a postgres (or whatever
your admin account is named) sticky bit.

Is this the 'one true way' for doing this?

Mike

--
Mike Erickson <mee (at) quidquam.com> http://www.quidquam.com/
Be happy. It is a way of being wise.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2000-11-02 13:17:29 Re: autostart postgresql
Previous Message Denis Perchine 2000-11-02 11:46:19 Re: Large objects