Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOC5l-0003sw-Rd for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Dec 2017 00:37:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOC5l-0004uP-ES for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Dec 2017 00:37:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eOC5l-0004uF-94 for pgsql-bugs@lists.postgresql.org; Mon, 11 Dec 2017 00:37:09 +0000 Received: from ns5.gunduz.org ([107.170.136.15] helo=ns1.gunduz.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eOC5d-0004TZ-OA for pgsql-bugs@postgresql.org; Mon, 11 Dec 2017 00:37:08 +0000 Received: from asus-laptop04.gunduz.org (unknown [88.237.199.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ns1.gunduz.org (Postfix) with ESMTPSA id D88DA3FD5C; Mon, 11 Dec 2017 00:36:56 +0000 (UTC) Message-ID: <1512952615.19931.49.camel@gunduz.org> Subject: Re: postgresql 9.5 "service postgresql-9.5 initdb" broken for centos6. (9.5.10 3PGDG) From: Devrim =?ISO-8859-1?Q?G=FCnd=FCz?= To: Aaron Davis , "pgsql-bugs@postgresql.org" Date: Mon, 11 Dec 2017 03:36:55 +0300 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-9XgeWfSiPrntBy2pF5eG" X-Mailer: Evolution 3.26.2 (3.26.2-1.fc27) Mime-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-9XgeWfSiPrntBy2pF5eG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Thanks for the report. Pushed 9.5.10-4 RPMs to RHEL 6 repo, which fixes thi= s issue. Apologies for the inconvenience. Regards, Devrim On Fri, 2017-12-08 at 19:15 +0000, Aaron Davis wrote: > Hello folks, >=20 > I'm finding that using the /etc/init.d/postgresql-9.5 script's initdb > function is not work in the rpms obtained from postgresql.org's repo >=20 > the steps to reproduce for me at least are to download: > https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x86_64/= post > gresql95-server-9.5.10-3PGDG.rhel6.x86_64.rpm > https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x86_64/= post > gresql95-libs-9.5.10-3PGDG.rhel6.x86_64.rpm > https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x86_64/= post > gresql95-9.5.10-3PGDG.rhel6.x86_64.rpm >=20 > then: > rpm -i postgresql95-libs-9.5.10-3PGDG.rhel6.x86_64.rpm > rpm -i postgresql95-9.5.10-3PGDG.rhel6.x86_64.rpm > rpm -i postgresql95-server-9.5.10-3PGDG.rhel6.x86_64.rpm >=20 > then run: > service postgresql-9.5 initdb > the response I get: > Initializing database: [FAILED] >=20 > I looks to me like the previous version of the script had this command: > $SU -l postgres -c "$initdbcmd" >> "\$PGLOG\" 2>&1 &" >=20 > While last night's update changed it to >=20 > $SU -l postgres -c "$initdbcmd >> \"$PGLOG\" 2>&1 &" >=20 > My shell scripting is kinda weak, but I believe the difference is the ne= w > iteration of the command pushes the '&' with the command allowing the su > process that spawned it to return instantly killing the initdb process. >=20 > Thank you for your time, > Aaron Davis | Software Development, Plixer > office 207 324 8805 /237 > aaron.davis@plixer.com | www.plixer.com //www.plixer.com/>; >=20 >=20 --=20 Devrim G=C3=BCnd=C3=BCz EnterpriseDB: https://www.enterprisedb.com PostgreSQL Consultant, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR --=-9XgeWfSiPrntBy2pF5eG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH8GKHNUOKtDEiyD22MM9/pLPbrUFAlot0ycACgkQ2MM9/pLP brWfiQ/+JT4qw9RKffVucAskjp9g2bjCfHHfAMa5jTbFQQJpEnVYco6NR7uAvYDi JSkaEQ38aYMrFDFgRE7QgCXLMKnTUyG/YgnfiWQVFyLgncxA4vT1/+ME9t3TD9pG zN9E2mjuyYbTbDTI56shahvKKA83Z+Coym4eOgEK1D8psA/O/sguRsn9XUSHOQAf cJcgsxg7VjnhgmAKaGyaCNBCQB/uVCans4uwiAs7NoishEmuEAHCh6XmWgmWHEkq dgs2yNJEnS9RUckV5Ql9Gl6vdzNhxinaFnEMW50c4EjfnkLLkEWZmVpuxv4djeUp O/6OMFjT3Ut+dKAhUpV7wHxsi9nTNY2+b6RohLozF+oP0k5HIyZc24qX4rT9z2nR Z24mvvdkCXmhTgwyqEkV2cKIJd2kNWH0pgw3HTKLFty0+fGMTmgwxLdEHBkDlpRX TFAjDtzcj+bez9qZrw6CoevHjyI4WF34cqVj7WpVA6nGZaZ2CU3cTQyQv0SuLWRF ToH+eYdP8gkryIPni+1zY9k5j0VhAMPJ2r1mRSTbBBpEEAo8SNnwCkg7Bia4ONnP d+IRidUiwu1q5B01vgN4DoNXZfNW1w9jrz0FEMqd42VA0hANrEHjLGfzK5uT0bqw cM05dg/TPEagkxcEy0/HrxT5i5pGJF0TW16P708H5212uUKT3ns= =X5h8 -----END PGP SIGNATURE----- --=-9XgeWfSiPrntBy2pF5eG--