| From: | Devrim Gündüz <devrim(at)gunduz(dot)org> |
|---|---|
| To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
| Cc: | pgsql-pkg-yum(at)postgresql(dot)org |
| Subject: | Re: pgbouncer systemd does not work on CentOS 7 |
| Date: | 2015-05-12 21:26:54 |
| Message-ID: | 1431466014.4314.19.camel@gunduz.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Devrim Gündüz | 2015-05-12 21:27:36 | Re: pgbouncer wrong mode for logrotate file |
| Previous Message | Devrim Gündüz | 2015-05-12 21:24:47 | Re: pgbouncer logrotate configuration |