Re: [HACKERS] text patch -- sugg cmd when run as root

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема Re: [HACKERS] text patch -- sugg cmd when run as root
Дата
Msg-id Pine.NEB.3.95.980430095307.10212N-100000@hub.org
обсуждение исходный текст
Ответ на Re: [HACKERS] text patch -- sugg cmd when run as root  (dg@illustra.com (David Gould))
Ответы Re: [HACKERS] text patch -- sugg cmd when run as root  ("Pedro J. Lobo" <pjlobo@euitt.upm.es>)
Список pgsql-hackers
On Wed, 29 Apr 1998, David Gould wrote:

> > When you run postgresql as root, the command it gives for putting in
> > your startup script is a little weird.  The main issue is that 2>&1
> > only works in bash, not tcsh.  >& works in both, so it seems
> > preferable.  Another minor issue is that it echoes the command and
> > pipes it through su.  Shouldn't this be "su - postgres -c 'cmd'"?  Do
> > all versions of su have the '-c' argument?  piping it through seems
> > weird, but maybe it isn't.
> >
> > this is a straight diff for src/backend/main/main.c
> >
> > --cut here--
> > 38c38
> > < echo \"postmaster -B 256 >/var/log/pglog 2>&1 &\" | su - postgres\n\n"
> > ---
> > > su - postgres -c 'postmaster -B 256 >& /var/log/pglog' &\n\n"
> > --cut here--
>
> You have tcsh as the root shell???

    As do I...so?  I just make sure I put a copy in /bin and you're
fine...or, at least, I haven't been burnt yet.  I can't stand the other
shells :(



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Jose' Soares Da Silva"
Дата:
Сообщение: Re: [HACKERS] drop table inside transactions
Следующее
От: Gautam H Thaker
Дата:
Сообщение: [Fwd: [QUESTIONS] an apparent error in answer from "##" (closest proximity)operator]