On 2011-10-10 10:59, Raymond Fung wrote:
> Dear all,
> 
> Any suggestion for proper way to rotate the "corosync" log file
> regularly ? Here is part of my config file
> ("/etc/corosync/corosync.conf") :
> 
> logging {
>       fileline: off
>       to_stderr: no
>       to_logfile: yes
>       to_syslog: yes
>         syslog_facility: daemon
>       logfile: /var/log/cluster/corosync.log
>       debug: off
>       timestamp: on
>       logger_subsys {
>               subsys: AMF
>               debug: off
>       }
> }
> 
> Any suggestion for a proper logrotate configuration file underneath
> "/etc/logrotate.d" ?

Use something like:

/var/log/cluster/corosync.log {
        weekly
        rotate 5
        compress
        delaycompress
        missingok
        notifempty
        copytruncate
        create 644 root root
}

Let us know if that works for you.

Cheers,
Florian

-- 
Need help with High Availability?
http://www.hastexo.com/now
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to