[repo] ensure we don't restart a task while the repo is shutting down (closes #1942736)
we need a safety belt in cw itself again looping task which use 'try / except'
or doesn't need to access the db (which will trigger ShuttingDown exception)
/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
}