debian/cubicweb-ctl.logrotate
author Julien Jehannet <julien.jehannet@logilab.fr>
Wed, 07 Sep 2011 17:50:09 +0200
changeset 7769 8af09eeee130
parent 5840 60880c81e32e
permissions -rw-r--r--
[session] take care of non-ascii characters in login and session id (closes: #1910849) We ensure a valid <str> conversion of the session id by using unormalize() at initialization.

/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 2>&1; \
           else \
              /etc/init.d/cubicweb reload > /dev/null 2>&1; \
           fi; \
        endscript
}