ibm1620 has asked for the wisdom of the Perl Monks concerning the following question:

I'm a bit confused about whether Proc::Daemon is applicable to my situation:

I'm writing a Perl "daemon" whose job is similar to that of inetd: it monitors two ports, and fork/execs non-Perl executables when connections are made on those ports.

Thus, the launcher daemon needs to continue running. The programs it launches (and there may be multiples thereof) run to completion and then terminate.

Should I use Proc::Daemon::Init *both* as a part of the launcher's initialization, *and* after forking off the launched program? Or is the former sufficient?