Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Easy Daemons...

by chorg (Monk)
on May 04, 2001 at 20:07 UTC ( [id://78005]=perlquestion: print w/replies, xml ) Need Help??

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

Anyone have experience with any of the Daemonizing modules? Like Proc::Daemon or Proc::Application? What I need to do is have my perl code running so I can just fire data to be processed at it, without paying the start-up penalty. It would be cool to have all the server trimmings too , like command line args etc...
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

Replies are listed 'Best First'.
Re: Easy Daemons... ((Super )Search hits)
by ybiC (Prior) on May 04, 2001 at 23:42 UTC
      I read all that stuff, and I'll implement it if I have to, but I always try to avoid re-inventing the wheel. Also, I wanted to see if there were undocumented problems, like the old memory leak problem in Tie::Cache::LRU
      _______________________________________________
      "Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."
(jeffa) Re: Easy Daemons...
by jeffa (Bishop) on May 05, 2001 at 01:08 UTC
    ybiC has you covered, and i recommend Proc::Daemon, but if you really want to get a full understanding on daemons and servers (forking, pre-forking, pre-threaded, etc.) then get thee a copy of Network Programming with Perl. You will not regret it. ;)

    Jeff

    R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
    L-L--L-L--L-L--L-L--L-L--L-L--L-L--
    
      Yes. The key here is that what I want to do is not write my own daemon code. That is fairly tangential to what I have to do. I just need to pop off a quick little "sumthin sumthin" . If I really need to, I will write a daemon app POSIX style, but my focus is more on what the daemon should do, not how to make it. Thus I just want to knock off a generic module. I've settled on Net::Daemon as the weapon of choice for me today. I'll definitely read the book tho - thanks...
      _______________________________________________
      "Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2025-07-20 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.