카테고리 없음

rabbitmq logrotate 설정

behonestar 2018. 7. 5. 17:54

Ubuntu 16.04 기준


vi /etc/logrotate.d/rabbitmq-server

────────────────────────

/var/log/rabbitmq/*.log {

        weekly

        missingok

        rotate 1

        compress

        delaycompress

        notifempty

        sharedscripts

        postrotate

            /etc/init.d/rabbitmq-server rotate-logs > /dev/null

        endscript

}