pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hidvégi Gábor <gaborca@webvision.hu>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Denis Lapshin <deniza956@gmail.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1
Date: Tue, 25 Sep 2012 19:07:34 +0200
Message-ID: <6360AD6B0B8C4EC2AACED9F2758A6199@gab> (raw)
References: <CAF=o15UvgtX-2KS8krc694FAdbpaKpcvgLiZ8YQcE==DK=Bw_w@mail.gmail.com>
	<22923.1348592565@sss.pgh.pa.us>

Hello there,

I have already posted this problem several months ago, there was no change 
in the documentation since then. It's not about the installation directory 
or username, under the new OpenBSD's the parameter ordering of 'su' differs 
from the older versions, the right order is like Denis writes.

Gábor Hidvégi


----- Original Message ----- 
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Denis Lapshin" <deniza956@gmail.com>
Cc: <pgsql-docs@postgresql.org>
Sent: Tuesday, September 25, 2012 7:02 PM
Subject: Re: [DOCS] Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 
5.1


> Denis Lapshin <deniza956@gmail.com> writes:
>> On page http://www.postgresql.org/docs/9.1/interactive/server-start.html
>> 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
>
>
> -- 
> Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-docs
> 





view thread (5+ messages)  latest in thread

Message-ID: <6360AD6B0B8C4EC2AACED9F2758A6199@gab>
Permalink:  ../6360AD6B0B8C4EC2AACED9F2758A6199@gab/
Also on:    postgresql.org/message-id/6360AD6B0B8C4EC2AACED9F2758A6199@gab

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: gaborca@webvision.hu, tgl@sss.pgh.pa.us, deniza956@gmail.com
  Subject: Re: Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1
  In-Reply-To: <6360AD6B0B8C4EC2AACED9F2758A6199@gab>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox