Re: starting with linux as another user... - Mailing list pgsql-general

From Oliver Elphick
Subject Re: starting with linux as another user...
Date
Msg-id 1031582320.24419.224.camel@linda
Whole thread Raw
In response to starting with linux as another user...  (Jeff Bluemel <jeff@domintcom.com>)
List pgsql-general
On Fri, 2002-09-06 at 20:05, Jeff Bluemel wrote:
> I know how to make programs start up with the system, but how do I make
> postgres start up as another username then root?
>

In your init script:

su - postgres -c "pg_ctl start"

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Submit yourselves therefore to God. Resist the devil,
      and he will flee from you."        James 4:7


pgsql-general by date:

Previous
From: Thomas O'Dowd
Date:
Subject: Re: Literal dash in regular expression brackets
Next
From: Bruno Wolff III
Date:
Subject: Re: Literal dash in regular expression brackets