Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XuPs5-0007AZ-3K for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Nov 2014 18:02:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XuPs4-0001tG-5a for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Nov 2014 18:02:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XtdRt-00063l-PP for pgsql-bugs@postgresql.org; Wed, 26 Nov 2014 14:20:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XtdRq-0007Cm-Kw for pgsql-bugs@postgresql.org; Wed, 26 Nov 2014 14:20:04 +0000 MIME-Version: 1.0 Subject: BUG #12072: init script creates pid file with wrong owner To: pgsql-bugs@postgresql.org From: henrik-postgres@hswn.dk Date: Wed, 26 Nov 2014 14:19:24 +0000 Message-ID: <20141126141924.15506.75024@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 12072 Logged by: Henrik Storner Email address: henrik-postgres@hswn.dk PostgreSQL version: 9.3.5 Operating system: CentOS 6.6 Description: 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). The init script should do a "chown postgres:postgres $pidfile" so the pid file is owned by the postgres user. This allows pg_ctl commands to work. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs