Logrotate error file or directory not found
I have logrotate conf:
/myapps/log.log {
missingok
notifempty
rotate 9
copy
}
then when running / usr / sbin / logrotate -d -f logrotate.conf
it gives error:
renaming /myapps/log.log.2 to /myapps/log.log.3 (rotatecount 2, logstart 1, i 2)
renaming /myapps/log.log.1 to /myapps/log.log.2 (rotatecount 2, logstart 1, i 1)
renaming /myapps/log.log.0 to /myapps/log.log.1 (rotatecount 2, logstart 1, i 0)
copying /myapps/log.log to /myapps/log.log.1
Not truncating /myapps/log.log.3
error: error opening /myapps/log.log.3: No such file or directory
I don't have log.log.3 yet, so it doesn't exist, but because of this, logrotate doesn't work at all, how can I fix it.
+3
source to share
No one has answered this question yet
Check out similar questions: