Re: more contrib: log rotator

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: more contrib: log rotator
Дата
Msg-id 8321.1049482726@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: more contrib: log rotator  ("scott.marlowe" <scott.marlowe@ihs.com>)
Ответы Re: more contrib: log rotator
Re: more contrib: log rotator
Список pgsql-hackers
"scott.marlowe" <scott.marlowe@ihs.com> writes:
> rotatelogs is in my path and all, it just never sees it.

You mean the command fails?  Or just that it doesn't capture output?

> "$po_path" ${1+"$@"} </dev/null | $PGPATH/rotatelogs $logfile $DURATION 2>&1 &

Most if not all of the postmaster's log output goes to stderr, so you'd need

"$po_path" ${1+"$@"} </dev/null 2>&1 | $PGPATH/rotatelogs ...

to have any hope of useful results.
        regards, tom lane



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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: more contrib: log rotator
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: [PERFORM] OSS database needed for testing