Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNOHX-0002J6-85 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Dec 2017 19:25:59 +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 1eNOHW-0007s0-M4 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Dec 2017 19:25:58 +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 1eNO7K-0001dE-A8 for pgsql-bugs@lists.postgresql.org; Fri, 08 Dec 2017 19:15:26 +0000 Received: from mx1.plixer.com ([64.140.243.154]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eNO7G-0001AV-H1 for pgsql-bugs@postgresql.org; Fri, 08 Dec 2017 19:15:25 +0000 Received: from PLXRDC01.plxr.local ([::1]) by PLXRDC01.plxr.local ([::1]) with mapi id 14.03.0351.000; Fri, 8 Dec 2017 14:15:19 -0500 From: Aaron Davis To: "pgsql-bugs@postgresql.org" Subject: postgresql 9.5 "service postgresql-9.5 initdb" broken for centos6. (9.5.10 3PGDG) Thread-Topic: postgresql 9.5 "service postgresql-9.5 initdb" broken for centos6. (9.5.10 3PGDG) Thread-Index: AdNwVx4NmHMJ/qRuStKnN8hcQZO7jQ== Date: Fri, 8 Dec 2017 19:15:18 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.14.127] Content-Type: multipart/alternative; boundary="_000_CD29EC4C51F44745A275635B558CDA950FEFC261PLXRDC01plxrloc_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_CD29EC4C51F44745A275635B558CDA950FEFC261PLXRDC01plxrloc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello folks, I'm finding that using the /etc/init.d/postgresql-9.5 script's initdb funct= ion is not work in the rpms obtained from postgresql.org's repo 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/po= stgresql95-server-9.5.10-3PGDG.rhel6.x86_64.rpm https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x86_64/po= stgresql95-libs-9.5.10-3PGDG.rhel6.x86_64.rpm https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x86_64/po= stgresql95-9.5.10-3PGDG.rhel6.x86_64.rpm 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 then run: service postgresql-9.5 initdb the response I get: Initializing database: [FAILED] I looks to me like the previous version of the script had this command: $SU -l postgres -c "$initdbcmd" >> "\$PGLOG\" 2>&1 &" While last night's update changed it to $SU -l postgres -c "$initdbcmd >> \"$PGLOG\" 2>&1 &" My shell scripting is kinda weak, but I believe the difference is the new = iteration of the command pushes the '&' with the command allowing the su pr= ocess that spawned it to return instantly killing the initdb process. Thank you for your time, Aaron Davis | Software Development, Plixer office 207 324 8805 /237 aaron.davis@plixer.com | www.plixer.com --_000_CD29EC4C51F44745A275635B558CDA950FEFC261PLXRDC01plxrloc_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello folks,

 

I’m finding that using the /etc/init.d/postgre= sql-9.5 script’s initdb function is not work in the rpms obtained fro= m postgresql.org’s repo

 

the steps to reproduce for me at least are to downlo= ad:

https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x= 86_64/postgresql95-server-9.5.10-3PGDG.rhel6.x86_64.rpm

https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x86= _64/postgresql95-libs-9.5.10-3PGDG.rhel6.x86_64.rpm

https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x86_64/p= ostgresql95-9.5.10-3PGDG.rhel6.x86_64.rpm

 

then:

rpm –i postgresql95-libs-9.5.10-3PGDG.rhel6.x8= 6_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

 

then run:

service postgresql-9.5 initdb

the response I get:

Initializing database:     =             &nb= sp;            =        [FAILED]

 

I looks to me like the previous version of the scrip= t had this command:

$SU -l postgres -c "$initdbcmd" >> &= quot;\$PGLOG\" 2>&1 &"

 

While last night’s update changed it to <= /o:p>

 

$SU -l postgres -c "$initdbcmd >> \"= $PGLOG\" 2>&1 &"

 

My shell scripting  is kinda weak, but I believ= e the difference is the new iteration of the command pushes the ‘&= ;’ with the command allowing the su process that spawned it to return= instantly killing the initdb process.

 

Thank you for your time,

Aaron Davis | Software Development, Plixer

office 207 324 8805 /237

aaron.davis@plixer.com | www.plixer.com

 

 

--_000_CD29EC4C51F44745A275635B558CDA950FEFC261PLXRDC01plxrloc_--