I have a problem on a raspberry that despite having all the correct files, it doesn't logrotate.
The logrotate, if launched manually, works properly and rotates the logs that are specified both in logrotate.conf, and those specified in the logrotate.d directory.
So I also tried to add the string in /etc/crontab30 22 7 root bash /usr/sbin/logrotate -f /etc/logrotate.conf
but also at the time established in crontab, the logrotate does not start and I find no explanation in any system log.
Has anyone already had to solve this problem?
Thanks
Adam
I have a problem on a raspberry that despite having all the correct files, it doesn't logrotate. The logrotate, if launched manually, works properly and rotates the logs that are specified both in logrotate.conf, and those specified in the logrotate.d directory. So I also tried to add the string in /etc/crontab 30 22 7 root bash /usr/sbin/logrotate -f /etc/logrotate.conf but also at the time established in crontab, the logrotate does not start and I find no explanation in any system log. Has anyone already had to solve this problem? Thanks Adam