debian/cubicweb-ctl.logrotate
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Tue, 27 Apr 2010 10:32:25 +0000
branchstable
changeset 5414 6eeec78c65f9
parent 0 b97547f5f1fa
child 5806 9ef0e95f4d2b
permissions -rw-r--r--
enforce use of environment variables when running as a service CW_INSTANCES_DIR, CW_INSTANCES_DATA_DIR, CW_RUNTIME_DIR must be positionned at the system level. This will ensure that cubicweb-ctl commands issued on the computer will use the proper directories.

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