Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGHln-00045o-Lq for pgsql-admin@arkaria.postgresql.org; Sat, 05 Feb 2022 09:54:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nGHlm-0000Be-9e for pgsql-admin@arkaria.postgresql.org; Sat, 05 Feb 2022 09:54:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGHll-0000BV-V0 for pgsql-admin@lists.postgresql.org; Sat, 05 Feb 2022 09:54:13 +0000 Received: from mail-ej1-f45.google.com ([209.85.218.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nGHlh-0006ij-B4 for pgsql-admin@lists.postgresql.org; Sat, 05 Feb 2022 09:54:13 +0000 Received: by mail-ej1-f45.google.com with SMTP id y3so6020140ejf.2 for ; Sat, 05 Feb 2022 01:54:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BMs2awzojkYB5C69N+1Zo5kherCnxc9GevFbqjGjoFU=; b=N8U4tRrJphuZ7eoqVxvhuoupzta490t5LdLAQYQFdFVP0hWmDgFw27blpUyUHox8v6 hDqGbNgT+jMzxv6ZNx23y65M0FaWiddAJeCL0G6rhUK6N0bskKr6lI6EznUbyvTX/b3Z TeICmH8PanH8yefKhgdk2Oazd0BwGV9dcPnhXlOwgLlH0QL9YYzMSYij2w3DyEB3SE7f ZRJE41zjb/F1Gnw587nr6vIbfU/8Bb2AAm3HLSKfNDAOqkjGFdRwDkAf+EvfGIgC+BQ/ d2xBghhmk6TMfrX3PfSlv5OqZOQm9r9fge+B7v0NQdR9K2zj4xk36KJPZDRAecL2U+K0 qhJg== X-Gm-Message-State: AOAM530EUizAZu/wE1CrpOGv4fFPGcPCqkb5rWFSkmjIXWQFwSuUez3f 8j3HZjeitkCi3uewia4ElIY= X-Google-Smtp-Source: ABdhPJwlnf49KdxDPb1Z3pUlqL+OdRmucqwWyhDtBRslNnaUIOjhbkWnzTLmKtaMsS7O96FcYLLc9A== X-Received: by 2002:a17:906:edc5:: with SMTP id sb5mr704989ejb.83.1644054847956; Sat, 05 Feb 2022 01:54:07 -0800 (PST) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:3b75:9d01:b8f:88fd:f8ad:3b58]) by smtp.gmail.com with ESMTPSA id f19sm1915500edu.22.2022.02.05.01.54.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Feb 2022 01:54:07 -0800 (PST) Message-ID: <61fe493f.1c69fb81.5e2db.903c@mx.google.com> X-Google-Original-Message-ID: <20220205095406.GC32034@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1nGHle-0005BD-BO; Sat, 05 Feb 2022 10:54:06 +0100 Date: Sat, 5 Feb 2022 10:54:06 +0100 From: Michael Banck To: Ibrahim Shaame Cc: pgsql-admin Subject: Re: Problem starting two postgresql clusters on the same host References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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