Re: Starting postmaster in rc.local/during bootup - Mailing list pgsql-general

From Shridhar Daithankar
Subject Re: Starting postmaster in rc.local/during bootup
Date
Msg-id 3DECFC4F.7233.495A965@localhost
Whole thread Raw
In response to Starting postmaster in rc.local/during bootup  ("Chris Boget" <chris@wild.net>)
Responses Re: Starting postmaster in rc.local/during bootup
List 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


pgsql-general by date:

Previous
From: "Chris Boget"
Date:
Subject: Starting postmaster in rc.local/during bootup
Next
From: Tommi Maekitalo
Date:
Subject: Re: Starting postmaster in rc.local/during bootup