Re: monitor file

2017-10-26 Thread 胡聪 (hucc)
hello, On Friday, Oct 27, 2017 12:25 PM, Dk Jack wrote: >On Thu, Oct 26, 2017 at 9:12 PM, 胡聪 (hucc) wrote: > >>On Friday, Oct 27, 2017 5:04 AM, Dk Jack wrote: >> >>>In my module I'd like to monitor the creation of a file (at a specific) using >>>inotify or something similar and load some data fr

Re: monitor file

2017-10-26 Thread Dk Jack
Thanks for the quick response. This is exactly what I need. Yes, it is a NGX_HTTP_MODULE. How do I ensure, "this module is behind ngx_event_core_module"? Thanks. Dk On Thu, Oct 26, 2017 at 9:12 PM, 胡聪 (hucc) wrote: > Hi, > > On Friday, Oct 27, 2017 5:04 AM, Dk Jack wrote: > > >In my module I'd

Re: monitor file

2017-10-26 Thread 胡聪 (hucc)
Hi, On Friday, Oct 27, 2017 5:04 AM, Dk Jack wrote: >In my module I'd like to monitor the creation of a file (at a specific) using >inotify or something similar and load some data from the file. How would I go >about hooking up the inotifyFd with the nginx event system so that I get a >callback w

monitor file

2017-10-26 Thread Dk Jack
Hi, In my module I'd like to monitor the creation of a file (at a specific) using inotify or something similar and load some data from the file. How would I go about hooking up the inotifyFd with the nginx event system so that I get a callback when the file is created on the disk? Dk.