Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 565218

Summary: dev-db/pgbouncer: logrotate script fails if pgbouncer not running
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: Current packagesAssignee: Aaron W. Swenson <titanofold>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, pgsql-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick Lauer gentoo-dev 2015-11-09 11:58:37 UTC
From cron mail:

 * pgbouncer: cannot `reload' as it has not been started
error: error running shared postrotate script for '/var/log/pgbouncer/pgbouncer.log '
Comment 1 Jonas Stein gentoo-dev 2017-07-09 12:02:23 UTC
Patrick, is the bug still present? Does it appear in all versions? Can you provide some more details in order to help the maintainers to get this fixed? 
Thank you.
Comment 2 Larry the Git Cow gentoo-dev 2017-12-21 11:51:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=855a26cb2380f20a90fe1873e3a35cb685320af4

commit 855a26cb2380f20a90fe1873e3a35cb685320af4
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2017-12-21 11:51:28 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2017-12-21 11:51:28 +0000

    dev-db/pgbouncer: Bump and improve
    
    Added optional dep on OpenSSL.
    
    Fixed logrotate script to always succeed.
    
    Address potential DoS by letting s-s-d handle the pidfile creation and
    backgrounding of pgbouncer.
    
    Dropped restart in initscript as online restart can’t be used with
    s-s-d and the pidfile isn’t writeable by the pgbouncer user.
    
    Bug: https://bugs.gentoo.org/500546
    Bug: https://bugs.gentoo.org/577784
    Bug: https://bugs.gentoo.org/629334
    Closes: https://bugs.gentoo.org/565218
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 dev-db/pgbouncer/Manifest                       |  1 +
 dev-db/pgbouncer/files/pgbouncer-1.8-dirs.patch | 32 +++++++++
 dev-db/pgbouncer/files/pgbouncer.initd-r1       | 83 ++++++++++++++++++++++++
 dev-db/pgbouncer/metadata.xml                   | 26 ++++----
 dev-db/pgbouncer/pgbouncer-1.8.1.ebuild         | 86 +++++++++++++++++++++++++
 5 files changed, 216 insertions(+), 12 deletions(-)