pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: Andre Schubert <andre.schubert@km3.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Log rotation
Date: Wed, 3 Apr 2002 11:20:31 +0200
Message-ID: <008e01c1daf0$cd683790$5ce8fea9@GMENDOLA2> (raw)
References: <009d01c1d689$f5878ed0$5ce8fea9@GMENDOLA2>
	<3CA93986.C721718E@km3.de>

"Andre Schubert" <andre.schubert@km3.de> wrote:
> You can use multilog on linux.


Hi, I don't know what's multilog but I resolved my
problem in this way (general suggestions for all):

#File postgresql.conf

syslog = 2
syslog_facility = 'LOCAL0'
syslog_ident = 'postgres'


#File /etc/logrotate.d/postgres

/var/log/postgresql.log {
    compress
    rotate 5
    size=10000k
    errors mendola@bigfoot.com
    create 0664 postgres postgres
    daily
    postrotate
           /usr/bin/killall -HUP syslogd
    endscript
}


#In File syslog.conf
LOCAL0.*
/var/log/postgresql.log


Ciao
Gaetano

--
#exclude <windows>
#include <CSRSS>
printf("\t\t\b\b\b\b\b\b");.
printf("\t\t\b\b\b\b\b\b");











view thread (12+ messages)  latest in thread

Message-ID: <008e01c1daf0$cd683790$5ce8fea9@GMENDOLA2>
Permalink:  ../008e01c1daf0$cd683790$5ce8fea9@GMENDOLA2/
Also on:    postgresql.org/message-id/008e01c1daf0$cd683790$5ce8fea9@GMENDOLA2

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mendola@bigfoot.com, andre.schubert@km3.de
  Subject: Re: Log rotation
  In-Reply-To: <008e01c1daf0$cd683790$5ce8fea9@GMENDOLA2>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox