From cb5f5c9432a06fd924cb8c88862a596789b32be5 Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Wed, 17 Feb 2010 22:23:12 +0000 Subject: [PATCH] add a note about rotating logfile created with to_logfile git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2659 fd59a12c-fef9-0310-b244-a6a79926bd2f --- man/corosync.conf.5 | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/man/corosync.conf.5 b/man/corosync.conf.5 index de6682f9..f131e167 100644 --- a/man/corosync.conf.5 +++ b/man/corosync.conf.5 @@ -488,6 +488,31 @@ and The default is syslog and stderr. +Please note, if you are using to_logfile and want to rotate the file, use logrotate(8) +with the option +.B +copytruncate. +eg. +.IP +.RS +.ne 18 +.nf +.ta 4n 30n 33n +/var/log/corosync.log { + missingok + compress + notifempty + daily + rotate 7 + copytruncate +} +.ta +.fi +.RE +.IP +.PP + + .TP logfile If the @@ -562,5 +587,6 @@ required. The corosync executive configuration file. .SH "SEE ALSO" -.BR corosync_overview (8) +.BR corosync_overview (8), +.BR logrotate (8) .PP