Re: Systemd vs logging collector

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Andomar <andomar(at)aule(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Systemd vs logging collector
Date: 2015-07-01 13:46:43
Message-ID: 5593EF43.6030903@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/01/2015 12:22 AM, Andomar wrote:
> In Arch Linux, Postgres is started by systemd. If you configure logging_collector in postgresql.conf this has no effect. All of the logging output is send to the journal, where you can read it with “journalctl -u postgresql”.
>
> The configuration for systemd contains a StandardError option. I’ve tried various settings but none result in a regular Postgres log file. The Postgres settings for systemd can be found here: /usr/lib/systemd/system/postgresql.service

What are they?

>
> Is there a way to let Postgres do its own logging when it is started by systemd?
>
> Kind regards,
> Andomar
>
> P.S. Trying to figure this out in order to answer this question: http://dba.stackexchange.com/questions/105384/postgresql-doesnt-log/
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-07-01 13:57:01 Re: Systemd vs logging collector
Previous Message Adrian Klaver 2015-07-01 13:42:58 Re: Ubuntu 14.04 LTS install problem