It might depend on your projects needs. We have two daemon-like processes. One listens on a TCP/IP port 24x7, but just in case it dies we have it setup in a cronjob to try and execute once a minute. It's not elegant, but it works for us.<br>
<br>The second process isn't a daemon per-se. We just run it from cron at 10 minute intervals and it processes anything that it finds in it's directory. Since the processing time can take quite a while, we put a flag file in the directory when we start, and delete it when we're done.<br>
<br>I think the first one is the daemon-like example you're looking for. Check out your distributions init.d scripts and start there.<br><br>Dan<br><br><div class="gmail_quote">On Fri, Jun 11, 2010 at 14:07, Jay Hannah <span dir="ltr"><<a href="mailto:jay@jays.net">jay@jays.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On 6/11/2010 1:03 PM, Todd Hamilton wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
What module or approach do you guys use to Daemonize a perl application?<br>
</blockquote>
<br></div>
We've got a bunch of home-spun .sh reminiscent of /etc/init.d/apache2 and friends. I'm sure there's prettier ways, but I've never used one. If you find one you like tell us about it. :)<div><div></div><div class="h5">
<br>
<br>
j<br>
<br>
_______________________________________________<br>
Omaha-pm mailing list<br>
<a href="mailto:Omaha-pm@pm.org" target="_blank">Omaha-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/omaha-pm" target="_blank">http://mail.pm.org/mailman/listinfo/omaha-pm</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>***************** ************* *********** ******* ***** *** **<br>"Quis custodiet ipsos custodes?"<br> (Who can watch the watchmen?)<br> -- from the Satires of Juvenal<br>
"I do not fear computers, I fear the lack of them."<br> -- Isaac Asimov (Author)<br>** *** ***** ******* *********** ************* *****************<br>