From: Devrim Gündüz <devrim@gunduz.org>
To: henrik-postgres@hswn.dk
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12072: init script creates pid file with wrong owner
Date: Tue, 02 Dec 2014 01:32:28 +0200
Message-ID: <1417476748.25575.3.camel@sayfabulunamadi.com> (raw)
In-Reply-To: <20141126141924.15506.75024@wrigleys.postgresql.org>
References: <20141126141924.15506.75024@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
On Wed, 2014-11-26 at 14:19 +0000, henrik-postgres@hswn.dk wrote:
>
> The /etc/init.d/postgresql-9.3 file created a PID file, but fails to
> make it owned by user 'postgres'.
>
> This means that using the "pg_ctl" command to restart Postgres fails,
> because user postgres cannot update the pid file (if you set
> external_pid_file in postgresql.conf so it can find the pid file).
I don't think that we designed the *init script* (kicked by init
subsystem) to be compatible with pg_ctl command (called by postgres
user). If you have an environment that requires a non-root user to
restart postgres, you can hack the init script and add a chown line
there.
That pid file is used by RHCS (IIRC), so I am not inclined to touch it.
Regards,
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachments:
signature.asc (application/pgp-signature, 818B) download
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: devrim@gunduz.org, henrik-postgres@hswn.dk
Subject: Re: BUG #12072: init script creates pid file with wrong owner
In-Reply-To: <1417476748.25575.3.camel@sayfabulunamadi.com>
References: <20141126141924.15506.75024@wrigleys.postgresql.org> <1417476748.25575.3.camel@sayfabulunamadi.com>
* 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