debian/cubicweb-ctl.logrotate
changeset 11841 48adf4dd1ce6
parent 11840 1eb3d6cd39c3
parent 11839 18e72d24dc58
child 11850 87443f279b0f
equal deleted inserted replaced
11840:1eb3d6cd39c3 11841:48adf4dd1ce6
     1 /var/log/cubicweb/*.log {
       
     2         weekly
       
     3         missingok
       
     4         rotate 10
       
     5         compress
       
     6         delaycompress
       
     7         notifempty
       
     8         create 640 root adm
       
     9         sharedscripts
       
    10         postrotate
       
    11            if [ -x /usr/sbin/invoke-rc.d ]; then \
       
    12               invoke-rc.d cubicweb reload > /dev/null 2>&1; \
       
    13            else \
       
    14               /etc/init.d/cubicweb reload > /dev/null 2>&1; \
       
    15            fi; \
       
    16         endscript
       
    17 }