Re: Issue with clusters with '-' in the name

Поиск
Список
Период
Сортировка
От David Peall
Тема Re: Issue with clusters with '-' in the name
Дата
Msg-id EA86466E-8639-4981-BA83-9516E6D0AE3D@dnservices.co.za
обсуждение исходный текст
Ответ на Re: Issue with clusters with '-' in the name  (Christoph Berg <myon@debian.org>)
Ответы Re: Issue with clusters with '-' in the name  (Christoph Berg <myon@debian.org>)
Список pgsql-pkg-debian
> On 19 Apr 2016, at 4:06 PM, Christoph Berg <myon@debian.org> wrote:
>
> 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


Where is the expansion done into %i and %I ?  I notice that the following works:
systemctl start postgresql@9.5/main

Regards
—
David Peall

В списке pgsql-pkg-debian по дате отправления:

Предыдущее
От: Vicky Vergara
Дата:
Сообщение: Re: pgrouting updated to version 2.2.0-1.pgdg+1
Следующее
От: Vicky Vergara
Дата:
Сообщение: Re: pgrouting updated to version 2.2.0-1.pgdg+1