debian/cubicweb-ctl.logrotate
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 30 Jun 2010 15:43:36 +0200
changeset 5840 60880c81e32e
parent 5806 9ef0e95f4d2b
permissions -rw-r--r--
[debian] fix logrotate error introduced by 5806:9ef0e95f4d2b: sh don't want spaces here

/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
}