Re: where does the -i go? - Mailing list pgsql-general

From Justin Clift
Subject Re: where does the -i go?
Date
Msg-id 3AC6BC4B.49C4DC5A@iprimus.com.au
Whole thread Raw
In response to where does the -i go?  (Steve Aras <steve@stevearas.com>)
List pgsql-general
Hi,

I'd generally do :

su - postgres -c "pg_ctl start -o '-i' > /dev/null 2>&1&"

Making sure the correct environment variables are in the .profile or
.bashrc start scripts for the postgres user of course.  (Depending on OS
and default shell for the postgres)

Regards and best wishes,

Justin Clift

su -l postgres -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster
start  >/dev/null 2>&1"

Steve Aras wrote:
>
> I've seen there are multiple ways of doing the -i for postmaster.
> Someone said something like:  Uncomment #PGOPTS= -i  Iv'e also seen it
> in the postmaster call  e.g.  postmaster -i  foo
>
> Do I need to add it to /rc.d/init.d/postgresql in the line below?
>  Where?
>
> su -l postgres -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster
> start  >/dev/null 2>&1"
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

pgsql-general by date:

Previous
From: Steve Aras
Date:
Subject: where does the -i go?
Next
From: Markus Mohr
Date:
Subject: capitals in fieldnames