Ever edit a file in /etc/cron.d and notice that cron magical knows it needs to reload? We do it all the time at BitLeap and it works great. However, recently we noticed that when we used php’s fileputcontents function cron wasn’t reloading automatically like it did before. Turns out that when we edited the files by hand, our text editor (vim) was updating the modified time on the directory. But when we used the php function it was not updating the directory’s modified time. Simply added a call to the touch function made cron magical again.
Cron Ignoring Changes in /etc/cron.d
Posted by – January 4, 2007
-
http://rhodesmill.org/brandon Brandon Craig Rhodes