Re: starting the server at boot

From: Shridhar Daithankar <shridhar_daithankar(at)myrealbox(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: starting the server at boot
Date: 2003-11-11 00:05:53
Message-ID: 200311110535.53545.shridhar_daithankar@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday 10 November 2003 15:02, javier garcia - CEBAS wrote:
> Hello;
>
> If I add the line:
> -------------------
> su -c 'pg_ctl start -D /usr/local/pgsql/data/ -l
> /usr/local/pgsql/data/logfile' postgres
> -------------------
> to /etc/rc.d/rd.local.
> Is there a way this could work when I don't boot as root, but as a common
> user?

rc.local script is always run as root. So it should work even if you boot/log
in as normal user.

> (I should be able to automatically pass a password, and I don't know how)

Read man pages for .pgpass.

HTH

Shridhar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message TANIDA Yutaka 2003-11-11 00:19:16 Re: Temp rows - is it possible?
Previous Message Joshua D. Drake 2003-11-10 23:00:34 Re: PL/Perl returning multiple rows