Re: Starting postmaster in rc.local/during bootup

From: "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: "PGSql General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Starting postmaster in rc.local/during bootup
Date: 2002-12-03 13:17:43
Message-ID: 3DECFC4F.7233.495A965@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3 Dec 2002 at 7:10, Chris Boget wrote:

> On the following page
>
> http://www.postgresql.org/idocs/index.php?installation.html
>
> It says that I need to su to the user postgres to start postmaster.
> In fact, when I try to start it as user root, it won't let me and that
> is somewhat understandable. But ideally, I'd like it so that user
> postgres does not have a shell (which is what I've done for the
> mysql user I had to set up).

I assume you are doing this in a shell script which gets called from rc.local

#!/bin/bash
su

pgctl -D <blah> start

And it is not working..

How about

su -c "pgctl -D <blah> start"

HTH

Bye
Shridhar

--
pediddel: A car with only one working headlight. -- "Sniglets", Rich Hall &
Friends

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tommi Maekitalo 2002-12-03 13:28:32 Re: Starting postmaster in rc.local/during bootup
Previous Message Chris Boget 2002-12-03 13:10:41 Starting postmaster in rc.local/during bootup