Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asbvQ-0006MX-G6 for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 19 Apr 2016 20:07:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1asbvP-0002Ct-PS for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 19 Apr 2016 20:07:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1asbvL-00028l-Tq for pgsql-pkg-debian@postgresql.org; Tue, 19 Apr 2016 20:07:03 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1asbvD-0002B6-Pn for pgsql-pkg-debian@postgresql.org; Tue, 19 Apr 2016 20:07:03 +0000 Received: from msg.df7cb.de (pD9EC6777.dip0.t-ipconnect.de [217.236.103.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3qqGHy4H8hz3F3J; Tue, 19 Apr 2016 22:06:54 +0200 (CEST) Date: Tue, 19 Apr 2016 22:06:54 +0200 From: Christoph Berg To: David Peall Cc: PostgreSQL in Debian Subject: Re: Issue with clusters with '-' in the name Message-ID: <20160419200654.GG12650@msg.df7cb.de> Mail-Followup-To: Christoph Berg , David Peall , PostgreSQL in Debian References: <20160419185339.GD12650@msg.df7cb.de> <57359EF6-B59F-4300-85A8-EEB4CF73489A@dnservices.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57359EF6-B59F-4300-85A8-EEB4CF73489A@dnservices.co.za> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.9 (--) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org Re: David Peall 2016-04-19 <57359EF6-B59F-4300-85A8-EEB4CF73489A@dnservices.co.za> > > $ head -4 /lib/systemd/system/postgresql\@.service > > # systemd service template for PostgreSQL clusters. The actual instances will > > # be called "postgresql@version-cluster", e.g. "postgresql@9.3-main". The > > # variable %i expands to "version-cluster", %I expands to "version/cluster". > > # (%I breaks for cluster names containing dashes.) > > > > Since postgresql-common 171 (18 Dec 2015) you should get a warning when > > creating clusters with dashes in the name. > > I do get the following warning: > Warning: cluster names containing dashes (-) will cause problems when running from systemd. Continuing anyway Thanks. As said in the comment in postgresql@.service, there's unfortunately not too much we can do about it. The problem is in this line: ConditionPathExists=/etc/postgresql/%I/postgresql.conf If you need clusters with dashes in the name, remove this line from the .service file. (The downside is that you can then start services called postgresql@what-ever and end up with "failed" bogus services.) Christoph -- Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-debian