From: Aaron Davis <aaron.davis@plixer.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: postgresql 9.5 "service postgresql-9.5 initdb" broken for centos6. (9.5.10 3PGDG)
Date: Fri, 8 Dec 2017 19:15:18 +0000
Message-ID: <CD29EC4C51F44745A275635B558CDA950FEFC261@PLXRDC01.plxr.local> (raw)
Hello folks,
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
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/postgresql95-server-9.5.10-...https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x86_64/postgresql95-libs-9.5.10-3P...https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.9-x86_64/postgresql95-9.5.10-3PGDG.r...
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 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<mailto:aaron.davis@plixer.com> | www.plixer.com<https://www.plixer.com/;
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: aaron.davis@plixer.com
Subject: Re: postgresql 9.5 "service postgresql-9.5 initdb" broken for centos6. (9.5.10 3PGDG)
In-Reply-To: <CD29EC4C51F44745A275635B558CDA950FEFC261@PLXRDC01.plxr.local>
References: <CD29EC4C51F44745A275635B558CDA950FEFC261@PLXRDC01.plxr.local>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox