Tue May 29 07:15:05 PDT 2007
- Previous message: [Slony1-general] How to rotate Slony log files
- Next message: [Slony1-general] How do I remove all traces of slony from my database?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I use a manual script to rotate the logs. Basically it's a simple stop,
rename and restart,
the contents of which is below:
echo Stopping and Restarting slon 1
date
pkill slon
sleep 1
SAVELOG=slon1.log`date +%C%y%m%d%H%M%S`
mv slon1.log $SAVELOG
/home/pgsql/slony/app1/start_node_1_bg.sh
Note: I have a separate script for the master and each slave.
ie: on master, the log name is slon1.log,
on slave 101..slon101.log
...
on slave 301..slon301.log
-----Original Message-----
From: slony1-general-bounces at lists.slony.info
[mailto:slony1-general-bounces at lists.slony.info] On Behalf Of
slony1-general-request at lists.slony.info
Sent: Monday, May 28, 2007 1:00 PM
To: slony1-general at lists.slony.info
Subject: Slony1-general Digest, Vol 3, Issue 23
Send Slony1-general mailing list submissions to
slony1-general at lists.slony.info
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.slony.info/mailman/listinfo/slony1-general
or, via email, send a message with subject or body 'help' to
slony1-general-request at lists.slony.info
You can reach the person managing the list at
slony1-general-owner at lists.slony.info
When replying, please edit your Subject line so it is more specific than
"Re: Contents of Slony1-general digest..."
Today's Topics:
1. How to rotate Slony log files (Aaron Randall)
----------------------------------------------------------------------
Message: 1
Date: Mon, 28 May 2007 14:48:45 +0000
From: Aaron Randall <aaron.randall at visionoss.com>
Subject: [Slony1-general] How to rotate Slony log files
To: slony1-general at lists.slony.info
Message-ID: <465AEBCD.1060704 at visionoss.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi All,
I was wondering if anyone knew of a way of using logrotate to handle the
Slony log files? The standard Slony config gives each log file a
different name which includes the date. This doesn't work with logrotate
which expects the log to have a consistent and well known name.
Many thanks,
Aaron
------------------------------
_______________________________________________
Slony1-general mailing list
Slony1-general at lists.slony.info
http://lists.slony.info/mailman/listinfo/slony1-general
End of Slony1-general Digest, Vol 3, Issue 23
*********************************************
- Previous message: [Slony1-general] How to rotate Slony log files
- Next message: [Slony1-general] How do I remove all traces of slony from my database?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list