Comment #2 on issue 1191 by sascha.l...@gisa.de: sample logrotate conf breaks with >=logrotate-3.8 and split-user
https://code.google.com/p/ganeti/issues/detail?id=1191

create and su do not the same. create is for setting the owner/permission on newly created logfile. su is for setting logrotat's process owner/group. logrotate >=3.8 seems to enforce using su on a directory writeable by others then root. So reinstating the create directive would not help?

This is what the ubuntu-16.04 package actually does:

/var/log/ganeti/*.log {
        weekly
        missingok
        rotate 52
        notifempty
        compress
        delaycompress
        create 640
        sharedscripts
        su root root
        postrotate
                /usr/lib/ganeti/daemon-util rotate-all-logs
        endscript
}

It uses su again and create (but without user/group). I assume the "su root root" is for the same reason: it is needed with logrotate >=3.8.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply via email to