Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TGYbl-0002ph-0v for pgsql-docs@postgresql.org; Tue, 25 Sep 2012 17:07:41 +0000 Received: from mail01k.mail.t-online.hu ([84.2.227.138]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TGYbj-0001iN-CQ for pgsql-docs@postgresql.org; Tue, 25 Sep 2012 17:07:40 +0000 Received: from gab (1F2E7D65.catv.pool.telekom.hu [31.46.125.101]) by mail01k.mail.t-online.hu (Postfix) with ESMTPA id 3XR7y04Yxmz191Bl; Tue, 25 Sep 2012 19:07:35 +0200 (CEST) Message-ID: <6360AD6B0B8C4EC2AACED9F2758A6199@gab> From: =?iso-8859-2?Q?Hidv=E9gi_G=E1bor?= To: "Tom Lane" , "Denis Lapshin" Cc: References: <22923.1348592565@sss.pgh.pa.us> Subject: Re: Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1 Date: Tue, 25 Sep 2012 19:07:34 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-2"; reply-type=original X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.5 (-) X-Archive-Number: 201209/23 X-Sequence-Number: 7475 Hello there, I have already posted this problem several months ago, there was no chang= e=20 in the documentation since then. It's not about the installation director= y=20 or username, under the new OpenBSD's the parameter ordering of 'su' diffe= rs=20 from the older versions, the right order is like Denis writes. G=E1bor Hidv=E9gi ----- Original Message -----=20 From: "Tom Lane" To: "Denis Lapshin" Cc: Sent: Tuesday, September 25, 2012 7:02 PM Subject: Re: [DOCS] Wrong startup script of PostgreSQL 9.1.2 under OpenBS= D=20 5.1 > Denis Lapshin writes: >> On page http://www.postgresql.org/docs/9.1/interactive/server-start.ht= ml >> was published a wrong startup script for automatic starting PostgeSQL >> during boot under OpenBSD. > >> Here is a working one which should be placed into /etc/rc.local file: > >> if [ -x /usr/local/bin/pg_ctl -a -x /usr/local/bin/postgres ]; then >> su - _postgresql -c '/usr/local/bin/pg_ctl -D /var/postgresql/data >> start -l /var/postgresql/logfile -s' >> echo -n 'postgresql' >> fi > > Right offhand it's not apparent to me that either of these can be said > to be "right" or "wrong". You are making different assumptions about > the installation directory and user name than what is in the > documentation, but your assumptions aren't more right than the docs'. > As stated there, the examples use generic choices that may need to be > adjusted for particular systems. > > regards, tom lane > > > --=20 > Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-docs >=20