Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fZ0SN-000831-Qk for pgsql-docs@arkaria.postgresql.org; Fri, 29 Jun 2018 20:57:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fZ0SL-00006M-7g for pgsql-docs@arkaria.postgresql.org; Fri, 29 Jun 2018 20:57:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fZ0SK-00006C-SY for pgsql-docs@lists.postgresql.org; Fri, 29 Jun 2018 20:57:25 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fZ0SC-0006vW-VD for pgsql-docs@lists.postgresql.org; Fri, 29 Jun 2018 20:57:23 +0000 Received: by mail-lf0-x244.google.com with SMTP id g21-v6so7719228lfb.4 for ; Fri, 29 Jun 2018 13:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:content-transfer-encoding:mime-version:subject:date :references:to:in-reply-to:message-id; bh=ExzAMrJgNVt94A0hjfSmN0KPiM5HiLn0AgPau0r29LI=; b=Ekh2jGuDtV29ZquvG+5JNsrzZYXhMrfgJx70oYf1IG8DvSOrC0ExuGEEKE8K8NRzQB TJEJbHQWOVsQDYivaouWiojv4+4E08nc/L1QH7nVIcrd+idcP8zB2lZDdJcofMvCjisc pels0m/5JRjNdDHvvmhlnYAO7K/DBw73xhylJWfIdGrC6MGvTbU2EcwaeOjr5NlQ5829 7h+XQ+0uF3mFexITTj4i9sZexRb+O7E/F1iytqpzAvPglqHnqfzOn/YeTRsyxkY2/4LW NTfgqsM+2mBzzQ8ZE8SawAA4Y1AOHMdYHX9uiazBQv2PUF9E4JZpdL9xhusvHK2Cdzf2 88aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:content-transfer-encoding :mime-version:subject:date:references:to:in-reply-to:message-id; bh=ExzAMrJgNVt94A0hjfSmN0KPiM5HiLn0AgPau0r29LI=; b=mb9kdAzQnUDlQL671afA3DNJVSIYRQxi5Pw4Cyxsr2ay1zmBLZo2T3rP7wk6nVfTp7 o2D9+IXhzKWia5nSCaIQP+dhyJqUX/P3Vm7iYp3u6edqsoqwxV5pfPiYnhVmdV5yfPGu Z7uD/ydgTs177uV8DjngtUbkq0Buuh9L/J/XvGhFB93cycQrOTCGpc2Gdr0NylSgFSBn RetgWBvRCSoIBspXAKRLRkAKpSPNK/2Qu9BMVyn5A93SjbZkT2x+gD/xtp4PEc/NpKh5 es0miOReSrSy2v8at5Kkb8F7Wl8cSlz93vC6F/W2ViHgcBOua7k+rTCH3gXGHLqbFxAN LhcA== X-Gm-Message-State: APt69E0iNxsrcZVV4D0IVINhZINizVcMKpHNdp8DMfGFZzAy1R46axIx HUPiLjL/LQ4jgMlS/8SsVMwIdKPIQrQ= X-Google-Smtp-Source: AAOMgpd2APVhVCziCrND5nKmY5D/fEiehOrVo8H2MvmxsS+dFRKmNxUU+xKGbopi5TGraIOvaVQCXA== X-Received: by 2002:a19:c90d:: with SMTP id z13-v6mr11139733lff.0.1530305835026; Fri, 29 Jun 2018 13:57:15 -0700 (PDT) Received: from [192.168.1.66] (c-1026e455.027-294-73746f71.bbcust.telenor.se. [85.228.38.16]) by smtp.gmail.com with ESMTPSA id f10-v6sm1670025ljk.94.2018.06.29.13.57.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jun 2018 13:57:14 -0700 (PDT) Sender: Daniel Gustafson From: Daniel Gustafsson Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: Correction for 9.6 documentation for OpenBSD Date: Fri, 29 Jun 2018 22:57:12 +0200 References: <152273337588.1439.4727367757952903047@wrigleys.postgresql.org> To: tech@aadu.rocks, pgsql-docs@lists.postgresql.org In-Reply-To: <152273337588.1439.4727367757952903047@wrigleys.postgresql.org> Message-Id: <91962FC4-8302-4617-B989-19D0AFA350BA@yesql.se> X-Mailer: Apple Mail (2.3445.8.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 3 Apr 2018, at 07:29, PG Doc comments form = wrote: >=20 > The following documentation comment has been logged on the website: >=20 > Page: https://www.postgresql.org/docs/9.6/static/server-start.html > Description: >=20 > OpenBSD 6.1 i386 > PostgreSQL 9.6 >=20 > In Section 18.3. Starting the Database Server, I did something = different > from the documentation. Instead of editing the file /etc/rc.local, as = the > documentation indicated, I ran the command >=20 > doas rcctl set postgresql status on >=20 > That command changed the file /etc/rc.conf.local. When I rebooted, the > PostgreSQL server was running. That=E2=80=99s because your postgresql server was installed via the = ports system, which provides an rc.d startup script for use with rcctl. The referenced documentation describes how to start the server without a service = script. That being said, since the ports tree is the =E2=80=9Crecommended=E2=80=9D= method for installing software perhaps the documentation should mention it? = Perhaps something along the lines of the below (a similar stanza could be added = for FreeBSD but I don=E2=80=99t it well enough to make an attempt). cheers ./daniel diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 1c92e7df75..01f5eacfcc 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -377,6 +377,11 @@ if [ -x /usr/local/pgsql/bin/pg_ctl -a -x = /usr/local/pgsql/bin/postgres ]; then su -l postgres -c '/usr/local/pgsql/bin/pg_ctl start -s -l = /var/postgresql/log -D /usr/local/pgsql/data' echo -n ' postgresql' fi + + If PostgreSQL is installed via ports, = it can + be started as a service with rcctl: + +rcctl set postgresql status on =