Artificial intelligent assistant

Logrotate: "log does not need rotating" why? I have the following new logrotate configuration: /var/log/nexus/nexus.log { rotate 7 missingok compress delaycompress copytruncate daily } When I run `logrotate -d nexus`, I get the following: reading config file nexus reading config info for /var/log/nexus/nexus.log Handling 1 logs rotating pattern: /var/log/nexus/nexus.log after 1 days (7 rotations) empty log files are rotated, old logs are removed considering log /var/log/nexus/nexus.log log does not need rotating My /var/log/nexus/ folder contains the following: nexus.log oldlogs.tar.gz Why isn't LogRotate rotating the nexus.log file? What I was expecting was that the nexus.log file would have been truncated and a new file, something like nexus.log-201106241000, would have been created.

Most likely, the log file is less than a day old and/or has been rotated within the last day and logrotate remembers the history.

If you add `-f` it'll force a rotation if you really want to (although not 100% sure how that interacts with `-d`).

You can look at the history, location depends on your distribution, but might be `/var/lib/logrotate/status`. That file shows when logs were last rotated.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy e32e54852ebca60fc79f3280cd69057b