Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YsBQa-0006qy-5f for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 12 May 2015 14:45:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YsBQZ-00020i-Lf for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 12 May 2015 14:44:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YsBQY-00020b-UB for pgsql-pkg-yum@postgresql.org; Tue, 12 May 2015 14:44:58 +0000 Received: from mout.gmx.net ([212.227.17.22]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1YsBQV-0004u4-EW for pgsql-pkg-yum@postgresql.org; Tue, 12 May 2015 14:44:58 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MFi1J-1YxyiH2Smr-00EeR9 for ; Tue, 12 May 2015 16:44:52 +0200 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 0FFB220DC7 for ; Tue, 12 May 2015 10:44:50 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Tue, 12 May 2015 10:44:51 -0400 X-Sasl-enc: YwBnHpJYWP0dTsYqD9gtovf7A9JzhljT9yknJ+HPXFQX 1431441890 Received: from [192.168.1.147] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 09942C0001E for ; Tue, 12 May 2015 10:44:50 -0400 (EDT) Message-ID: <555211E1.3010805@gmx.net> Date: Tue, 12 May 2015 10:44:49 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: pgsql-pkg-yum@postgresql.org Subject: pgbouncer logrotate configuration Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:KnA70elO5q7aDkYOtMCzv0ZZILOdj0Vo+8E7284TtjFW6Vckvg9 Gtf9Yd8FweRJzrqn1L9POQduMWkC9JZPvkYXb+cNctL6aIPk30Mt7mMSTN61Sjh+dh0NF3L rnwTxu0/OwKbbT2Yab7mVn9nYK/B0I1QXULvr4X9kHkWETKyglCZ4oBv2sFCPi7tN3y7yKr PppMKO7fD4JSliICqfemg== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-pkg-yum Precedence: bulk Sender: pgsql-pkg-yum-owner@postgresql.org 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 (pgsql-pkg-yum@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-yum