public inbox for [email protected]  
help / color / mirror / Atom feed
From: Peter Eisentraut <[email protected]>
To: [email protected]
Subject: pgbouncer logrotate configuration
Date: Tue, 12 May 2015 10:44:49 -0400
Message-ID: <[email protected]> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-pkg-yum>

The pgbouncer logrotate configuration seems a bit contradictory:

/var/log/pgbouncer.log {
    missingok
    notifempty
    sharedscripts
    copytruncate
    create 0640 pgbouncer pgbouncer
    nodateext
    postrotate
        /bin/kill -HUP `cat /var/run/pgbouncer/pgbouncer.pid
2>/dev/null` 2> /dev/null || true
    endscript
}

"create" is ignored if "copytruncate" is used.  And having a postrotate
script to send a HUP signal is also pointless if copytruncate is used.
We need to decide on one way to do it: either copytruncate, or rename
and SIGHUP.

It also seems to me that this might be a bit simpler if we created a
subdirectory /var/log/pgbouncer/ for all the log files.  Then we
wouldn't have the permissions issues that the "create" directory is
attempting to solve.

Comments?


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



view thread (5+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: pgbouncer logrotate configuration
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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