Actualy the point is that in
/var/log/directadmin/ I have a lot of log files and some of them are 3 months old:
-rw------- 1 diradmin diradmin 10572 May 17 00:19 2004-May-16.log
-rw------- 1 diradmin diradmin 5126 May 17 19:17 2004-May-17.log
-rw------- 1 diradmin diradmin 5302 May 18 14:04 2004-May-18.log
-rw------- 1 diradmin diradmin 4473 May 20 18:07 2004-May-20.log
-rw------- 1 diradmin diradmin 6070 May 21 20:30 2004-May-21.log
-rw------- 1 diradmin diradmin 2711 May 23 12:02 2004-May-23.log
-rw------- 1 diradmin diradmin 2448 May 24 14:24 2004-May-24.log
-rw------- 1 diradmin diradmin 3331 May 25 01:10 2004-May-25.log
-rw------- 1 diradmin diradmin 4198 May 26 13:18 2004-May-26.log
-rw------- 1 diradmin diradmin 4590 May 27 17:23 2004-May-27.log
-rw------- 1 diradmin diradmin 7008 May 28 18:15 2004-May-28.log
-rw------- 1 diradmin diradmin 3320 May 30 04:09 2004-May-30.log
And I would like to delete all files from DirectAdmin which are older than 1 month or greater than 10 MB.
I think there are enough log files left there to read if a problem appears.
So as you said, I have create this code:
/var/log/directadmin/ {
weekly
size=1M
rotate 0
}
and put it to /etc/logrotate.conf asa I read in logrotate docs. Then I run: logrotate /etc/logrotate.conf , ad guess what nothig happens
The files are still there.