[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: WSAPI vs. events
- From: Matthew Wild <mwild1@...>
- Date: Wed, 13 Apr 2011 01:27:58 +0100
On 13 April 2011 01:15, Robert G. Jakabosky <bobby@sharedrealm.com> wrote:
> On Tuesday 12, Matthew Wild 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?
>> >
>> > So, I just got ignored? :-)
>
> I couldn't think of an easy solution to this in pure Lua. For C code I would
> use signals, Many daemons use SIGHUP/SIGUSR1 to signal log file rotation or a
> change in the configuration file.
>
>>
>> The obvious answer to me was to use signals. However this answer
>> seemed so obvious I gathered there was a reason it didn't apply in
>> your case.
>
> Did you create your own signal handler or did you use an existing module? I
> tried lua_signal from luarocks, but it didn't work correctly (I forget what
> the problem was) when I tried it last. Also the website for it is gone, so I
> don't know if it is going to be maintained.
>
Prosody uses LuaSignal. It's maintained. It works. Last release:
http://lua-users.org/lists/lua-l/2010-07/msg00198.html
Regards,
Matthew