With recent update of nginx initscript with checkpath code mode and owner checks for /var/log/nginx were introduced. I have a custom syslog setup with all logfiles having the same group (not root) so logcheck could read them. Also I don't really want anyone to look into my /var/log/nginx so it has 0750 mode. But with latest version of initscript all of these won't be taken in account and I will forcidly have 0755 dir with root:root perms on EACH restart of nginx. This is wrong.
Please do something with it. Wouldn't it be better to create /var/log/nginx from ebuild during postinstall? Or at least add a simple test check in ebuild like
if [ -d /var/log/nginx ]; then
Should be, of course
if [ ! -d /var/log/nginx ]; then
Adding `-q` parameter to checkpath doesn't solve this. Ownership and mode are still changed on every nginx restart. Please add `if` clause.