Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Using Proc::Daemon correctly

by ibm1620 (Scribe)
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 meditating upon the Monastery: (2)
As of 2017-04-27 04:01 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (498 votes). Check out past polls.