Personal tools
You are here: Home PC zope&plone ZOPEのログ更新
Document Actions

ZOPEのログ更新

by かわうぃん last modified 2006-09-24 16:37

ZOPEで出力されたログファイルを定期的に更新する方法

たとえば次のようなファイルを /etc/logrotate.d/ の下に zopeという名前で作成

コマンド

#[root /]                       cd /etc/logrotate.d

#[root logrotate.d]      vi zope

/var/log/zope/event.log /var/log/zope/Z2.log {
    missingok
    notifempty
    postrotate
        /var/lib/zope/bin/zopectl logreopen > /dev/null 2>&1 || true
    endscript
}

これだけで一日単位のローテーションができます。

event.log や Z2.log zopectlの場所は、インストール環境によって異なります。


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: