11.4. ltclusterd log rotation

To ensure the current ltclusterd logfile (specified in ltcluster.conf with the parameter log_file) does not grow indefinitely, configure your system's logrotate to regularly rotate it.

Sample configuration to rotate logfiles weekly with retention for up to 52 weeks and rotation forced if a file grows beyond 100Mb:

    /var/log/ltcluster/ltclusterd.log {
        missingok
        compress
        rotate 52
        maxsize 100M
        weekly
        create 0600 lightdb lightdb
        postrotate
            /usr/bin/killall -HUP ltclusterd
        endscript
    }