Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1 - Mailing list pgsql-docs

From Denis Lapshin
Subject Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1
Date
Msg-id CAF=o15UvgtX-2KS8krc694FAdbpaKpcvgLiZ8YQcE==DK=Bw_w@mail.gmail.com
Whole thread Raw
Responses Re: Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-docs
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

Please correct your manual pages ASAP in order to prevent spending
time to fix it.

Denis


pgsql-docs by date:

Previous
From: Alan B
Date:
Subject: Add clarification example to EXEC SQL CONNECT with password
Next
From: Tom Lane
Date:
Subject: Re: Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1