pgbouncer systemd does not work on CentOS 7

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-pkg-yum(at)postgresql(dot)org
Subject: pgbouncer systemd does not work on CentOS 7
Date: 2015-05-06 19:52:37
Message-ID: 554A7105.1050002@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Peter Eisentraut 2015-05-07 14:09:09 pgbouncer wrong mode for logrotate file
Previous Message James Laska 2015-05-01 00:02:40 EL7 and Apache private /tmp/ directories