public inbox for [email protected]  
help / color / mirror / Atom feed
pgbouncer systemd does not work on CentOS 7
5+ messages / 3 participants
[nested] [flat]

* pgbouncer systemd does not work on CentOS 7
@ 2015-05-06 19:52  Peter Eisentraut <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Peter Eisentraut @ 2015-05-06 19:52 UTC (permalink / raw)
  To: pgsql-pkg-yum

After installing pgbouncer-1.5.5-1.rhel7.x86_64.rpm on CentOS 7.0, it
does not remain running.  No errors are logged.

I think the systemd configuration is faulty.  It currently reads

[Service]
Type=forked

...

ExecStart=/usr/bin/pgbouncer -d -v ${BOUNCERCONF}

If I change that to

[Service]
Type=simple

...

ExecStart=/usr/bin/pgbouncer -v ${BOUNCERCONF}

it works

Alternatively, the first version can be made to work by adding
RemainAfterExit=yes.

But clearly, the second version is more in line with the systemd philosophy.



-- 
Sent via pgsql-pkg-yum mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-yum



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgbouncer systemd does not work on CentOS 7
@ 2015-05-12 21:26  Devrim Gündüz <[email protected]>
  parent: Peter Eisentraut <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Devrim Gündüz @ 2015-05-12 21:26 UTC (permalink / raw)
  To: Peter Eisentraut <[email protected]>; +Cc: pgsql-pkg-yum


Hi Peter,

On Wed, 2015-05-06 at 15:52 -0400, Peter Eisentraut wrote:
> After installing pgbouncer-1.5.5-1.rhel7.x86_64.rpm on CentOS 7.0, it
> does not remain running.  No errors are logged.
> 
> I think the systemd configuration is faulty.  It currently reads
> 
> [Service]
> Type=forked
> 
> ...
> 
> ExecStart=/usr/bin/pgbouncer -d -v ${BOUNCERCONF}
> 
> If I change that to
> 
> [Service]
> Type=simple
> 
> ...
> 
> ExecStart=/usr/bin/pgbouncer -v ${BOUNCERCONF}
> 
> it works
> 
> Alternatively, the first version can be made to work by adding
> RemainAfterExit=yes.
> 
> But clearly, the second version is more in line with the systemd philosophy.

Thanks for the report. I picked up second way, and committed to git.

Regards,

-- 
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR



Attachments:

  [application/pgp-signature] signature.asc (819B, 2-signature.asc)
  download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgbouncer systemd does not work on CentOS 7
@ 2015-05-15 20:04  Peter Eisentraut <[email protected]>
  parent: Devrim Gündüz <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Peter Eisentraut @ 2015-05-15 20:04 UTC (permalink / raw)
  To: Devrim Gündüz <[email protected]>; +Cc: pgsql-pkg-yum

On 5/12/15 5:26 PM, Devrim Gündüz wrote:
> 
> Hi Peter,
> 
> On Wed, 2015-05-06 at 15:52 -0400, Peter Eisentraut wrote:
>> After installing pgbouncer-1.5.5-1.rhel7.x86_64.rpm on CentOS 7.0, it
>> does not remain running.  No errors are logged.
>>
>> I think the systemd configuration is faulty.  It currently reads
>>
>> [Service]
>> Type=forked
>>
>> ...
>>
>> ExecStart=/usr/bin/pgbouncer -d -v ${BOUNCERCONF}
>>
>> If I change that to
>>
>> [Service]
>> Type=simple
>>
>> ...
>>
>> ExecStart=/usr/bin/pgbouncer -v ${BOUNCERCONF}
>>
>> it works
>>
>> Alternatively, the first version can be made to work by adding
>> RemainAfterExit=yes.
>>
>> But clearly, the second version is more in line with the systemd philosophy.
> 
> Thanks for the report. I picked up second way, and committed to git.

Why?  Wouldn't the non-forking approach be more in line with what
systemd expects?



-- 
Sent via pgsql-pkg-yum mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-yum



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgbouncer systemd does not work on CentOS 7
@ 2015-09-22 18:52  Peter Eisentraut <[email protected]>
  parent: Peter Eisentraut <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Peter Eisentraut @ 2015-09-22 18:52 UTC (permalink / raw)
  To: Devrim Gündüz <[email protected]>; +Cc: pgsql-pkg-yum

On 5/15/15 4:04 PM, Peter Eisentraut wrote:
> On 5/12/15 5:26 PM, Devrim Gündüz wrote:

>>> I think the systemd configuration is faulty.  It currently reads
>>>
>>> [Service]
>>> Type=forked
>>>
>>> ...
>>>
>>> ExecStart=/usr/bin/pgbouncer -d -v ${BOUNCERCONF}
>>>
>>> If I change that to
>>>
>>> [Service]
>>> Type=simple
>>>
>>> ...
>>>
>>> ExecStart=/usr/bin/pgbouncer -v ${BOUNCERCONF}
>>>
>>> it works
>>>
>>> Alternatively, the first version can be made to work by adding
>>> RemainAfterExit=yes.
>>>
>>> But clearly, the second version is more in line with the systemd philosophy.
>>
>> Thanks for the report. I picked up second way, and committed to git.
> 
> Why?  Wouldn't the non-forking approach be more in line with what
> systemd expects?

ping



-- 
Sent via pgsql-pkg-yum mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-yum



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgbouncer systemd does not work on CentOS 7
@ 2015-09-22 20:19  Devrim GÜNDÜZ <[email protected]>
  parent: Peter Eisentraut <[email protected]>
  0 siblings, 0 replies; 5+ messages in thread

From: Devrim GÜNDÜZ @ 2015-09-22 20:19 UTC (permalink / raw)
  To: Peter Eisentraut <[email protected]>; +Cc: pgsql-pkg-yum


Hi Peter,

On Tue, 2015-09-22 at 14:52 -0400, Peter Eisentraut wrote:
> >> Thanks for the report. I picked up second way, and committed to
> git.
> > 
> > Why?  Wouldn't the non-forking approach be more in line with what
> > systemd expects?
> 
> ping

Did you test 1.6.1? That version seems to be working on my RHEL 7 box.

Regards,
-- 
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR





-- 
Sent via pgsql-pkg-yum mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-yum




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2015-09-22 20:19 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-06 19:52 pgbouncer systemd does not work on CentOS 7 Peter Eisentraut <[email protected]>
2015-05-12 21:26 ` Devrim Gündüz <[email protected]>
2015-05-15 20:04   ` Peter Eisentraut <[email protected]>
2015-09-22 18:52     ` Peter Eisentraut <[email protected]>
2015-09-22 20:19       ` Devrim GÜNDÜZ <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox