[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: WSAPI vs. events
- From: "Robert G. Jakabosky" <bobby@...>
- Date: Tue, 12 Apr 2011 17:15:20 -0700
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.
> Maybe you can explain the problem more concretely if this is the case?
> (I appreciate your original post contained details but I feel I must
> be missing something of the problem).
>
> Regards,
> Matthew
--
Robert G. Jakabosky