lua-users home
lua-l archive

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


Hi, list!

Here is a simple question that I do not know a good answer for:

I have a simple WSAPI-based HTTP service (running under
nginx/spawn+fcgi/multiwatch/luajit2b5).

Aside of serving some data over HTTP, this service writes some data to
a log file for each request.

I forked this service N times. Each fork does not and should not know
about other's existence.

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

* * *

Note that my problem is more broad than that — for example I want to
tell all forks to shut down etc., but we may concentrate on the issue
at hand first.

I have some possible solutions in mind (and actually do employ one of
them), but, since the question is so simple, I will wait until others
will suggest something. I like none of the options that I see.

Alexander.