以下是我的logrotateconfiguration。我无法使用logrotate工作
“sudo / usr / sbin / logrotate /etc/logrotate.conf”。但是如果我执行“sudo logrotate -f /etc/logrotate.conf”,它会按照预期创build日志文件。
/var/log/test/test.log { daily dateext dateformat .%Y-%m-%d rotate 4 copytruncate compress compressext .tar.gz missingok notifempty }
任何人都可以帮我解决这个问题吗?我使用Ubuntu14.04操作系统。