Re: where does the -i go?
От | Justin Clift |
---|---|
Тема | Re: where does the -i go? |
Дата | |
Msg-id | 3AC6BC4B.49C4DC5A@iprimus.com.au обсуждение исходный текст |
Ответ на | where does the -i go? (Steve Aras <steve@stevearas.com>) |
Список | 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 по дате отправления: