From: | Christoph Berg <myon(at)debian(dot)org> |
---|---|
To: | David Peall <david(at)dnservices(dot)co(dot)za> |
Cc: | PostgreSQL in Debian <pgsql-pkg-debian(at)postgresql(dot)org> |
Subject: | Re: Issue with clusters with '-' in the name |
Date: | 2016-04-19 20:06:54 |
Message-ID: | 20160419200654.GG12650@msg.df7cb.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-pkg-debian |
Re: David Peall 2016-04-19 <57359EF6-B59F-4300-85A8-EEB4CF73489A(at)dnservices(dot)co(dot)za>
> > $ head -4 /lib/systemd/system/postgresql\(at)(dot)service
> > # systemd service template for PostgreSQL clusters. The actual instances will
> > # be called "postgresql(at)version-cluster", e.g. "postgresql(at)9(dot)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(at)(dot)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(at)what-ever and end up with "failed" bogus services.)
Christoph
From | Date | Subject | |
---|---|---|---|
Next Message | Vicky Vergara | 2016-04-19 20:07:21 | Re: pgrouting updated to version 2.2.0-1.pgdg+1 |
Previous Message | Sebastiaan Couwenberg | 2016-04-19 19:01:01 | Re: pgrouting updated to version 2.2.0-1.pgdg+1 |