|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Writing a Perl Daemonby Zaxo (Archbishop) |
| on Jul 28, 2005 at 06:48 UTC ( #478848=note: print w/ replies, xml ) | Need Help?? |
|
A) Super Search for daemon will find some nodes on writing perpetual "background" processes. There are some fiddly bits to look after, but Proc::Daemon will do a fine job of that for you. B) A convenient way of using a lockfile is with sysopen; You should ensure that you call unlink '/var/lock/mydaemon'; in every exit path your code may take. After Compline,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||