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