[PKG-Openstack-devel] question about cinder logrotate scripts

stanzgy stan.zgy at gmail.com
Wed Aug 27 02:49:13 UTC 2014


Hi all, I have noticed that our cinder service will get restarted every
logrotate runs.
IMO it's very dangerous to do this kind of things.
Is there any specific reason to do this? My suggestion is to remove the
postrotate section in these scripts.

/var/log/cinder/cinder-api.log {
    daily
    missingok
    compress
    delaycompress
    notifempty
    postrotate
        if dpkg-vendor --derives-from ubuntu ; then
            service cinder-api restart >/dev/null 2>&1 || true
        else
            invoke-rc.d cinder-api restart >/dev/null 2>&1 || true
        fi
    endscript
}

-- 
Best Regards,

Gengyuan Zhang
NetEase Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20140827/57db6f65/attachment.html>


More information about the Openstack-devel mailing list