The logrotate cron script, part of the logrotate package, is missing executable permissions, so doesn't work in the current package version. It should be 0744 I think. It can be manually fixed like this:
# chmod u+x /etc/cron.daily/logrotate
I just noticed my logs were getting very large (it was updated to this version in November... ;D )
for me works normally with 100644
you are right
I have cronie and cronie-openrc installed, there are other cron packages, perhaps they are different.
-rw-r--r-- 1 root root 3774 Mar 5 14:35 rc.log
-rw-r--r-- 1 root root 35717 Mar 5 01:11 rc.log.1.gz
-rw-r--r-- 1 root root 2512 Nov 17 01:18 rc.log.2.gz
-rw-r--r-- 1 root root 2982 Nov 10 11:44 rc.log.3.gz
-rw-r--r-- 1 root root 3470 Nov 3 01:11 rc.log.4.gz
-rw-r----- 1 root root 124930 Mar 5 14:36 syslog
-rw-r----- 1 root root 61514958 Mar 5 01:11 syslog.1
-rw-r----- 1 root root 65324 Nov 18 03:23 syslog.2.gz
-rw-r----- 1 root root 44875 Nov 17 03:14 syslog.3.gz
-rw-r----- 1 root root 66131 Nov 16 14:41 syslog.4.gz
/etc/cron.hourly$ ls -l
total 12
-rwxr-xr-x 1 root root 580 Nov 1 10:52 0anacron
-rw-r--r-- 1 root root 61 Mar 5 15:43 execno
-rwxr--r-- 1 root root 54 Mar 5 15:42 execyes
$ cat exec*
#!/bin/sh
logger "cron hourly permissions - not executable"
#!/bin/sh
logger "cron hourly with exec permissions"
Testing this here, only the one with executable permissions (execyes) is writing to syslog on the hour.
In current package this file is not executable.
I'm using "cronie" as task scheduler, version 1.5.5-1. In previous versions of cronie, file logrotate could be executed even if it hasn't execution bit. But new versions are stricter and files can only be executed if them have execution permission.
I can set permission manually, but it's better in the package.
we will check that and fix it.
Duplicated with:
https://forum.artixlinux.org/index.php/topic,1339.0.html
Sorry!!
thank you for report!
for me works lograte now again