What is the convention for handling daemonization in a POE application?

In particular, what I am wondering is whether typically one daemonizes
before $poe_kernel->run() or do the daemonization in one of the
"application manager" sessions.

For example, I am considering using what I call a "StoreKeeper" session
to handle application initialization with AppConfig, start up other
helper sessions, etc.  Following that paradigm, some where in the
"_start" event handler of "StoreKeeper", it probably should also
daemonize (using Net::Server::Daemonize).

Another approach is to only enter POE's event loop when the daemon is
fully initialized (validated command arguments, read configuration
files) and daemonized.

Is there a better way?  Thanks in advance.

Pete


Reply via email to