debian/cubicweb-ctl.logrotate
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 29 May 2009 19:31:32 +0200
changeset 2008 640a59bf5c68
parent 0 b97547f5f1fa
child 5806 9ef0e95f4d2b
permissions -rw-r--r--
[javascript] provide a strftime method to Date objects Rely on toLocaleFormat when it's available. If not, this just returns '%Y/%m/%d'. A nicer implementation will come later

/var/log/cubicweb/*.log {
        weekly
        missingok
        rotate 10
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
           if [ -x /usr/sbin/invoke-rc.d ]; then \
              invoke-rc.d cubicweb reload > /dev/null; \
           else \
              /etc/init.d/cubicweb reload > /dev/null; \
           fi; \
        endscript
}