Re: How to start several PostgreSQL clusters at boot time on a Debian OS - Mailing list pgsql-general

From Adrian Klaver
Subject Re: How to start several PostgreSQL clusters at boot time on a Debian OS
Date
Msg-id 543E7C69.40504@aklaver.com
Whole thread Raw
In response to How to start several PostgreSQL clusters at boot time on a Debian OS  (Léa Massiot <lmhelp1@orange.fr>)
Responses Re: How to start several PostgreSQL clusters at boot time on a Debian OS
List pgsql-general
On 10/15/2014 03:18 AM, Léa Massiot wrote:
> Hello and thank you for reading my post.
>
> My question is about starting PostgreSQL clusters at boot time.
>
> The OS is Debian Wheezy.
> I have installed PostgreSQL from the sources (postgresql-9.3.5.tar.gz) at
> http://www.postgresql.org/ftp/source/v9.3.5/.
>
> In a shell and logged as "unprivileged_user" (a user which is not "root"), I
> presently have two clusters that I can start manually like this:
> unprivileged_user> pg_ctl start -D /where/cluster1/is/located/pgcluster1 -l
> /where/cluster1/is/located/pgcluster1.log
> unprivileged_user> pg_ctl start -D /where/cluster2/is/located/pgcluster2 -l
> /where/cluster2/is/located/pgcluster2.log
>
> I would like to start the clusters at boot time and I would like them to be
> started as the non-root user "unprivileged_user".
> I would need a "/etc/init.d/" script...

Are you aware that 9.3 is available for Wheezy from the Postgres Apt Repo?:

http://www.postgresql.org/download/linux/debian/

If you use the package you can get what you want built in, using
pg_createcluster among other tools.

>
> Can you advise me how to do that?
> Best regards.
>
>
>
> --
> View this message in context:
http://postgresql.1045698.n5.nabble.com/How-to-start-several-PostgreSQL-clusters-at-boot-time-on-a-Debian-OS-tp5823085.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Léa Massiot
Date:
Subject: Re: How to start several PostgreSQL clusters at boot time on a Debian OS
Next
From: "Roopeshakumar Narayansa Shalgar (rshalgar)"
Date:
Subject: Any postgres API available to get errorcode for PQerrorMessage