For the first time today, I am trying to write a configuration file for logrotate. When I restart the logrotate service, I get the following error: logrotate.service: Failed with result 'exit-code'.
If I delete my file and restart logrotate.service, everything is OK
Here is my logrotate.conf configuration file
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
#dateext
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# system-specific logs may be also be configured here.
Here is my custom configuration file
/var/www/webd/logs/clean.log
{
rotate 12
monthly
missingok
notifempty
compress
}
What is wrong with this file?
Thanks,
Thierry