I set up a logrotate configuration file containing containing two entries. the file contains the following:
/var/www/designer-24.com/var/log/* {
daily
missingok
rotate 7
dateext
notifempty
copytruncate
}
/var/www/designer-24.com/var/report/* {
daily
missingok
rotate 7
dateext
notifempty
copytruncate
}
Then I run the following command
sudo logrotate -s /var/log/logstatus logrotate.conf
The files get registered in the logstatus files. However, when I access the directory containing the files to be logrotated, I do not see any copies of the files except the original ones, and are not emptied.
Can anyone suggest why?