Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XvaSR-000430-CE for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Dec 2014 23:32:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XvaSQ-0001rS-RD for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Dec 2014 23:32:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XvaSP-0001oh-6z for pgsql-bugs@postgresql.org; Mon, 01 Dec 2014 23:32:41 +0000 Received: from ns3.gunduz.org ([107.170.88.27] helo=ns1.gunduz.org) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XvaSH-0007Lp-Pm for pgsql-bugs@postgresql.org; Mon, 01 Dec 2014 23:32:39 +0000 Received: from [192.168.1.101] (unknown [85.102.151.70]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ns1.gunduz.org (Postfix) with ESMTPSA id EB9DA4296F; Mon, 1 Dec 2014 23:32:30 +0000 (UTC) Message-ID: <1417476748.25575.3.camel@sayfabulunamadi.com> Subject: Re: BUG #12072: init script creates pid file with wrong owner From: Devrim =?ISO-8859-1?Q?G=FCnd=FCz?= To: henrik-postgres@hswn.dk Cc: pgsql-bugs@postgresql.org Date: Tue, 02 Dec 2014 01:32:28 +0200 In-Reply-To: <20141126141924.15506.75024@wrigleys.postgresql.org> References: <20141126141924.15506.75024@wrigleys.postgresql.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-iOVzdA4hhBrkJ8cgZBy3" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) 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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --=-iOVzdA4hhBrkJ8cgZBy3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Wed, 2014-11-26 at 14:19 +0000, henrik-postgres@hswn.dk wrote: >=20 > The /etc/init.d/postgresql-9.3 file created a PID file, but fails to > make it owned by user 'postgres'. >=20 > 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, --=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 --=-iOVzdA4hhBrkJ8cgZBy3 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 iQIcBAABAgAGBQJUfPqMAAoJENjDPf6Sz261+4YP/1IrG6JjhVLqf5rN7NGs+wpG wQKbjeE4HGyBJyaoSW/rSzT8cEjAmpQ/Nlm237CrWR/IZwGLerjeppE1QCaxnOaK Ch3raqe4stpy9fZ57lL3bnxXlsz/WCkIkS/3B3oK+OYNkNpeu8qoJ5AIcpYBPQH+ 7KC4FOnhX4Zs7VO8W0BJhBPZZzEgu7CUPe+KxmP4lP9vWVHUZXULYTSXIOYlAzw5 1zd6ofed5LuBwTup1dDP6YrDy3BwJnqWcRPbPcU+IWPhMSp0J/kRRCiMSccNQoaK 3Uu6X32x0fZPWaCF+1yn8HwuYKvEEfTde5ILBNcTJncCE/7u4ii4HRjhIHFeT9cg VNNPvM4rcRPMoJKCT+YNzyj98ZlbKp6kR+wNurQgc8R/85ivKkHTGyzFuxAQlAuJ HYVJ8H8qIyVu7xgdQIcy3JGl+HTSeXpMEE2QTgcbkGWFWpzsBhYD/uSeEa3PQ5Ly ZZl2uMZm6TVZMf6uybbAlV3tZE1z3TEobXp1JEmhr/rKI1iAoQihjBXjqflNZfvM c/JdqUG0rsBzto8QMTn90gNBEJTncg9WNy5iQV0H+S7d1LrT1GkA07TW8IWVrYiP ZuBWJnvJFTV9p6l0DsifEvjHrntTTpj5wC0AsK67hM7gIGK1HLC2hDP5iQNSOVtW iWC994zuJbJKL5xtxiKI =dZsv -----END PGP SIGNATURE----- --=-iOVzdA4hhBrkJ8cgZBy3--