On 4/15/2013 1:49 PM, FrancoisGervais wrote:
Hi,
We running monit as part of our embedded system to monitor a config file
which is written by a 3rd application. Then when monit sees the timestamp
change on the config file it fires a script which does the actual
configuration.
However, it seems that once in a while there's a race condition and once
inside the script when we load the config file it hasn't been updated yet.
It would seems that the timestamp has been updated but not the file content.
Is this possible?
Thanks
Francois
Does anything touch the file, it checks mtime and ctime, and returns the
newest value to check?
Also, is there a possibility that your time is being set during boot,
causing some confusion perhaps? (This does on ours, so we work around it)
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general