lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Apr 13, 2011 at 15:29, Louis Mamakos <louie@transsys.com> wrote:
> On Apr 13, 2011, at 2:32 AM, Alexander Gladysh wrote:
>> On Wed, Apr 13, 2011 at 03:58, Matthew Wild <mwild1@gmail.com> wrote:
>>> On 13 April 2011 00:47, Alexander Gladysh <agladysh@gmail.com> wrote:
>>>> On Sun, Apr 10, 2011 at 10:59, Alexander Gladysh <agladysh@gmail.com> wrote:

>>>>> Now I rotated the log file. How do I tell the WSAPI service to let go
>>>>> old log file and open a new one?

> If you have lfs available, perhaps you could periodically stat() the log file pathname, and see if it's major/minor device numbers changed?  That would allow you to detect that it has been renamed and a new file at the name has replaced it.

It will probably resolve the concrete problem with the log file, but
will not help the problem in general. I do need to be able to send a
message to a particular WSAPI fork and receive an immediate answer.

Alexander.