首页 > Operation System > cron的配置跑了2份!

cron的配置跑了2份!

2008年1月23日 哈哈 发表评论 阅读评论

前两天碰到个问题
某2台机器上某个log的logrotate总不对
上去看了看
一台fc3(fedora core 3)、一台RedHat9(够有年头了吧)
具体现象是xxxlog.1的大小为0,但是xxxlog.2倒是正常
而且时间正好是上一次做rotate的时间
再看了看/var/spool/mail/root和/var/log/cron
初步断定是xxxlog的logrotate跑了两遍导致的
但是哪里导致cron跑了2份呢

最后发现
crontab -l里有东西
而且跟/etc/crontab里的内容一样!
用crontab -e把里面的东西删掉
第二天早上log就正常了

原创文章,转载请注明: 转载自嘻嘻哈哈的部落格(blog)

本文链接地址: cron的配置跑了2份!

  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word