root@backup[10.10.10.21] ~ # ls /etc/logrotate.d/
total 68K
-rw-r--r-- 1 root root 326 Feb 1 2014 apache2
-rw-r--r-- 1 root root 173 Nov 16 2013 apt
-rw-r--r-- 1 root root 79 Nov 7 2012 aptitude
-rw-r--r-- 1 root root 209 Apr 29 2014 clamav-daemon
-rw-r--r-- 1 root root 230 Apr 29 2014 clamav-freshclam
-rw-r--r-- 1 root root 232 Sep 30 2013 dpkg
-rw-r--r-- 1 root root 146 Jan 2 2013 exim4-base
-rw-r--r-- 1 root root 126 Jan 2 2013 exim4-paniclog
-rw-r--r-- 1 root root 338 Jun 12 2013 fail2ban
-rwxr-xr-x 1 root root 440 Feb 4 17:52 infomaniak
-rw-r--r-- 1 root root 1.6K Jun 16 2012 mailman
-rw-r--r-- 1 root root 880 Jan 20 2014 mysql-server
-rw-r--r-- 1 root root 163 Apr 18 2014 php5-fpm
-rw-r--r-- 1 root root 1014 Oct 8 2012 pure-ftpd-common
-rw-r--r-- 1 root root 162 May 26 2012 rkhunter
-rw-r--r-- 1 root root 515 Mar 5 2013 rsyslog
-rw-r--r-- 1 root root 111 Jun 28 2012 suphp-common
root@backup[10.10.10.21] ~ #
infomaniak (the config file) is readable.
Any help appreciated. Thanks
You might try making the permissions on /etc/logrotate.d/infomaniak the same as all the other files in that directory.
Also, man logrotate warns about using the * wildcard as you have done there, you might want to check that out.
You might try making the permissions on /etc/logrotate.d/infomaniak the same as all the other files in that directory.
You were right, my file wasn't even loaded. Then when I changed permissions (chmod -x) I started seeing the errors on the console when launching logrotate manually
root@backup[10.10.10.21] ~ # logrotate /etc/logrotate.conf
error: infomaniak:2 bad rotation count '31 # Garder les logs du mois'
error: found error in /var/log/infomaniak/main.log , skipping
error: stat of /var/log/infomaniak/main.log failed: No such file or directory
root@backup[10.10.10.21] ~ #
I removed the comments that were at the end of line and added a "create" directive because without it the logfile would disappear.