From: Christoph Berg <myon@debian.org>
To: David Peall <david@dnservices.co.za>
Cc: PostgreSQL in Debian <pgsql-pkg-debian@postgresql.org>
Subject: Re: Issue with clusters with '-' in the name
Date: Tue, 19 Apr 2016 22:06:54 +0200
Message-ID: <20160419200654.GG12650@msg.df7cb.de> (raw)
In-Reply-To: <57359EF6-B59F-4300-85A8-EEB4CF73489A@dnservices.co.za>
References: <E7F3EFD1-82A2-47BB-833D-EFA6BBD66969@dnservices.co.za>
<20160419185339.GD12650@msg.df7cb.de>
<57359EF6-B59F-4300-85A8-EEB4CF73489A@dnservices.co.za>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-pkg-debian@postgresql.org
Cc: myon@debian.org, david@dnservices.co.za
Subject: Re: Issue with clusters with '-' in the name
In-Reply-To: <20160419200654.GG12650@msg.df7cb.de>
References: <E7F3EFD1-82A2-47BB-833D-EFA6BBD66969@dnservices.co.za> <20160419185339.GD12650@msg.df7cb.de> <57359EF6-B59F-4300-85A8-EEB4CF73489A@dnservices.co.za> <20160419200654.GG12650@msg.df7cb.de>
* 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