<div dir="ltr"><div>Hi all, I have noticed that our cinder service will get restarted every logrotate runs.<br></div>IMO it's very dangerous to do this kind of things. <br>Is there any specific reason to do this? My suggestion is to remove the postrotate section in these scripts.<br>
<div><div><br>/var/log/cinder/cinder-api.log {<br> daily<br> missingok<br> compress<br> delaycompress<br> notifempty<br> postrotate<br> if dpkg-vendor --derives-from ubuntu ; then<br> service cinder-api restart >/dev/null 2>&1 || true<br>
else<br> invoke-rc.d cinder-api restart >/dev/null 2>&1 || true<br> fi<br> endscript<br>}<br clear="all"><div><br>-- <br>Best Regards,<br><br>Gengyuan Zhang<br>NetEase Inc.
</div></div></div></div>