Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Using Proc::Daemon correctly

by ibm1620 (Beadle)
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?

Comment on Using Proc::Daemon correctly

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1053093]
Approved by sparkyichi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-09-22 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (189 votes), past polls