Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to pass arguments to a daemon

by rovf (Priest)
on Jun 20, 2012 at 10:48 UTC ( #977297=note: print w/ replies, xml ) Need Help??


in reply to How to pass arguments to a daemon

In addition to what moritz said: A common way to pass data to a daemon is to use a config file. If you need to update the file while the daemon is running, a common practice is to send the daemon a SIGHUP. From the Perl side, this can be trapped by

$SIG{HUP}=sub { .... };

-- 
Ronald Fischer <ynnor@mm.st>


Comment on Re: How to pass arguments to a daemon
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2015-07-29 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls