Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1

From: Denis Lapshin <deniza956(at)gmail(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1
Date: 2012-09-25 06:37:35
Message-ID: CAF=o15UvgtX-2KS8krc694FAdbpaKpcvgLiZ8YQcE==DK=Bw_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2012-09-25 17:02:45 Re: Wrong startup script of PostgreSQL 9.1.2 under OpenBSD 5.1
Previous Message Alan B 2012-09-20 16:17:15 Add clarification example to EXEC SQL CONNECT with password