Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMk7f-0006U6-6p for pgsql-docs@arkaria.postgresql.org; Thu, 29 Dec 2016 23:28:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cMk7e-00067q-QH for pgsql-docs@arkaria.postgresql.org; Thu, 29 Dec 2016 23:28:34 +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 1cMk7I-0005ir-DW for pgsql-docs@postgresql.org; Thu, 29 Dec 2016 23:28:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cMk7F-0000aG-Qt for pgsql-docs@postgresql.org; Thu, 29 Dec 2016 23:28:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uBTNS7IO029557; Thu, 29 Dec 2016 18:28:07 -0500 From: Tom Lane To: azopane@gmail.com cc: pgsql-docs@postgresql.org Subject: Re: start-up script for OpenBSD In-reply-to: <20161229143354.10141.10104@wrigleys.postgresql.org> References: <20161229143354.10141.10104@wrigleys.postgresql.org> Comments: In-reply-to azopane@gmail.com message dated "Thu, 29 Dec 2016 14:33:54 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29555.1483054087.1@sss.pgh.pa.us> Date: Thu, 29 Dec 2016 18:28:07 -0500 Message-ID: <29556.1483054087@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org azopane@gmail.com writes: > I have just installed OpenBSD 6.0 with the postgresql package (pg 9.5.3) > Section 17.3 of the postgresql documentation gives a recommended startup > script for OpenBSD to be put into /etc/rc.local > The path is incorrect for pg_ctl and postgres. These are located in > /usr/local/bin and not /usr/local/pgsql/bin as given. Naturally this does > not allow postgresql to start at boot. Well, /usr/local/pgsql/bin *is* where they're installed if you build PG from source without modifications. The OpenBSD packager evidently changed that to conform with local custom, which is entirely reasonable --- many other platforms change the install location too. But we can't document what other people do. It's the responsibility of the platform packager to provide documentation saying what they changed. Most packagers also provide suitably customized startup scripts ... did you check? regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs