Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YsHfk-0007n8-AY for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 12 May 2015 21:25:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YsHfj-00028H-QW for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 12 May 2015 21:25:03 +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 1YsHfj-00028B-Bz for pgsql-pkg-yum@postgresql.org; Tue, 12 May 2015 21:25:03 +0000 Received: from ns3.gunduz.org ([107.170.88.27] helo=ns1.gunduz.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YsHfe-0004BD-DC for pgsql-pkg-yum@postgresql.org; Tue, 12 May 2015 21:25:02 +0000 Received: from asus-laptop-03 (unknown [94.197.121.34]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ns1.gunduz.org (Postfix) with ESMTPSA id 169F0401DC; Tue, 12 May 2015 21:24:54 +0000 (UTC) Message-ID: <1431465887.4314.18.camel@gunduz.org> Subject: Re: pgbouncer logrotate configuration From: Devrim =?ISO-8859-1?Q?G=FCnd=FCz?= To: Peter Eisentraut Cc: pgsql-pkg-yum@postgresql.org Date: Wed, 13 May 2015 00:24:47 +0300 In-Reply-To: <555211E1.3010805@gmx.net> References: <555211E1.3010805@gmx.net> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-JtCJiyjCaNWnW3wNuRnO" X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21) Mime-Version: 1.0 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 --=-JtCJiyjCaNWnW3wNuRnO Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Tue, 2015-05-12 at 10:44 -0400, Peter Eisentraut wrote: > The pgbouncer logrotate configuration seems a bit contradictory: >=20 > =EF=BB=BF=EF=BB=BF/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 > } >=20 > "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. >=20 > 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. Just committed a fix for this. Can you please pull 9.4 tree and see whether all problems you reported have been fixed or not? I can push the packages tomorrow or so. Regards, --=20 Devrim G=C3=9CND=C3=9CZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR --=-JtCJiyjCaNWnW3wNuRnO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJVUm+fAAoJENjDPf6Sz261JGEP/iqf2kDSk9eKKI/F/n+2mlBG Nm8lRlOuoEWMDN3g997pZO4uEIIQNdyg2f1TQgNND+Ic5x1C3xNpMAlvn752tjUH bV8kLkJ6L6PN/tqbAR/PL/28thMxwmgKbcWHpRe8mnI8Tj8pNrM5oVJUW9tI/GgM sxpDlZ2bFeNn8CXxU2nmt1tOqEAbMvxSmSqo/FH9VhWUlKHmh4cuiDysGcugLGFx haRj9hhgTnugYrZEQ1/R12KeVLlE18caeNaRLHE9h4WLSrCkkGz1X85hZR2YNDzm zg7fxBNf7ABDwVb/WQTvH+a5heKGsOoM+EpmsoaHjaXA18AwAD5+eskkVG+d3sSP nucumFOJdaajzFm5rWshg0q4pdQSqRwrA94D7dAg9L+wJjQE7+EphlJptOGYYiw/ UtqW82aChOVkJvSja4kYhmXuBzVm5+Ar6zB/9a/vpyKyEHO9zgZtYpfLvuqXqvMH vW2f+I4VCkSk903WAJzFcCNSqbVwKnFAs30VqqZA/FzL8/MIGv5IqLPdYe0Oh5Hy pCLxVz0alsMg5hvUr66PXGfS4OG2eukuuCiFu2ukAsF+QEcNsAtxwpcXk3Xs14g5 e5udccfFMskVsVkJNdFhez2dOZSDAd4g3/mEo0EsHRPkinlrRyDmsH6lWXmEyX7S 7pvWpfiaHErna3arA4yZ =lGOE -----END PGP SIGNATURE----- --=-JtCJiyjCaNWnW3wNuRnO--