Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Using Proc::Daemon correctly

by ibm1620 (Monk)
on Sep 09, 2013 at 19:57 UTC ( #1053093=perlquestion: print w/replies, xml ) Need Help??
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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1053093]
Approved by sparkyichi
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-01-19 04:05 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (215 votes). Check out past polls.