Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0qvg-0002Mb-Ci for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 27 Mar 2018 15:54:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f0qve-0006n1-ST for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 27 Mar 2018 15:54:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0qve-0006mp-Jr for pgsql-pkg-debian@lists.postgresql.org; Tue, 27 Mar 2018 15:54:30 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0qvb-0001Fp-B5 for pgsql-pkg-debian@postgresql.org; Tue, 27 Mar 2018 15:54:29 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1474:d80:76e5:bff:fef3:7e00]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 409bDH5R5nz3F42; Tue, 27 Mar 2018 17:54:23 +0200 (CEST) Date: Tue, 27 Mar 2018 17:54:23 +0200 From: Christoph Berg To: Casey & Gina Cc: pgsql-pkg-debian@postgresql.org Subject: Re: Undocumented --skip-systemctl-redirect option Message-ID: <20180327155423.GB27054@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Casey & Gina , pgsql-pkg-debian@postgresql.org References: <282CCF96-1D9D-4283-BCDD-255DCF566A54@icloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <282CCF96-1D9D-4283-BCDD-255DCF566A54@icloud.com> User-Agent: Mutt/1.9.2 (2017-12-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Casey & Gina 2018-03-27 <282CCF96-1D9D-4283-BCDD-255DCF566A54@icloud.com> > I wondered why --skip-systemctl-redirect wasn't documented in the man_page for pg_ctlcluster? We just forgot... Will fix that shortly and publish it with the next postgresql-common release. > I discovered it trying to figure out why running pg_ctlcluster from Saltstack on Ubuntu 16.04 was hanging - adding that flag resolved the issue. One of the first places I checked when running into the issue was the pg_ctlcluster man page, so I think it would be a good idea to add there... As just discussed on IRC, don't do that. Clusters running (or daemons in general) should be managed by systemd and cgroups, and that switch prevents that. At first glance, it will work, but things might behave strangely. (And after the next reboot, systemd will start the clusters anyway, so salt shouldn't do something else on the first install.) That said, I don't know what's wrong there. If you can reproduce it manually, I'd be very interested. Christoph