From: Michael Banck <michael.banck@credativ.de>
To: Ibrahim Shaame <ishaame@gmail.com>
Cc: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Problem starting two postgresql clusters on the same host
Date: Sat, 5 Feb 2022 10:54:06 +0100
Message-ID: <61fe493f.1c69fb81.5e2db.903c@mx.google.com> (raw)
In-Reply-To: <CAJOWwD66KF-6c7=_C53Zh-Qp+kXSm4G_XWwyK+H-tfm=Fqm1WA@mail.gmail.com>
References: <CAJOWwD66KF-6c7=_C53Zh-Qp+kXSm4G_XWwyK+H-tfm=Fqm1WA@mail.gmail.com>
On Sat, Feb 05, 2022 at 12:41:37PM +0100, Ibrahim Shaame wrote:
> I have created two postgresql clusters on the same host, which work
> perfectly when started individually and manually. But when putting them on
> start script, only one loads and the other fails. Any hint? My installation
> is postgresql 14.1 on Slackware 15 and my rc.postgresql looks like this:
>
> # Start PostgreSQL:
> postgresql_start() {
> if [ -x /data/apps/postgresql/pgsql141/bin/pg_ctl ]; then
> su - postgres -c "/data/apps/postgresql/pgsql141/bin/pg_ctl -D
> /data/apps/postgresql/pgsql141/data start &"
> su - postgres -c "/data/apps/postgresql/pgsql141/bin/pg_ctl -o "-p 5433"
> -D /data/apps/postgresql/pgsql141/data2 start & "
Is this verbatim, or a copy-pasto? You have four " in there, you need to
escape the "-p 5433" like \"-p 5433\" or else the command will stop at
-o".
Michael
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: michael.banck@credativ.de, ishaame@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Problem starting two postgresql clusters on the same host
In-Reply-To: <61fe493f.1c69fb81.5e2db.903c@mx.google.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox