|
From: | Rory Toma |
Subject: | Re: Monit spawning script before the filesystem is updated |
Date: | Mon, 15 Apr 2013 14:14:46 -0700 |
User-agent: | Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 |
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)
[Prev in Thread] | Current Thread | [Next in Thread] |