Sean Kirkpatrick Sean.Kirkpatrick
Mon May 9 18:09:40 PDT 2005
Thank you for the suggestions.  I'll look into them.

-----Original Message-----
From: Christopher Browne [mailto:cbbrowne at ca.afilias.info]
Sent: Monday, May 09, 2005 12:29 PM
To: Sean Kirkpatrick
Cc: Slony1-general at gborg.postgresql.org
Subject: Re: [Slony1-general] Slony-generated log file maintenance


Sean Kirkpatrick wrote:

> Hello All,
>
> What is the recommended method for maintaining the slony generated log
> files.  I have tried using logrotate and 'cat /dev/null > slony_log',
> but once the log is truncated, the space is taken back by what appears
> to be binary data as the first entry in the log...
>
> I would really like to not have to stop slony to cycle the log file,
> if possible...
>
Hmm.

There's some built-in support for using apache rotatelogs for the job.

I haven't tried using cfengine to rotate the logs, but would expect that
to work.

If things are running well, killing the process and restarting to get a
rotation would not be overly disastrous...


More information about the Slony1-general mailing list