logrotate problem
I have the following Linux cluster.
/app/s04/log/rcv.log
/app/s04/log/snd.log
/app/s04/log/info.log
Today, active linux node(RHEL4) failover to another node. Then I got my app resource mounted at another node so that there is nothing under /app/s04 now.
I found daily cron job excecuted at AM4:02 are failed with [logrotate: exited with return code 1]. My app log logroate setting is /etc/logrotate.d/applog as follows.
/app/s04/log/*.log {
missingok
weekly
notifempty
create 644 root root
}
I tried to test the setting again as follows.
# logrotate -dv /etc/logrotate.d/applog
reading config file applog
error: error accessing /app/s04/log/*.log: No such or directory
error: applog:1 glob failed for /app/s04/log/*.log
I think that is because of /app/s04/log directory loss by failover.
Question: Is there a way to edit /etc/logroate.d/applog to logrotate properly? I tried to [missingok], but it seems that it just can look up
log file not directory, here i want to ask if there is way to let logrotate to ignore the nonexistent direcory such as /app/s04/log.
|